fdf_create

(PHP 4, PHP 5 < 5.3.0, PECL fdf SVN)

fdf_createCreate a new FDF document

说明

fdf_create(): resource

Creates a new FDF document.

This function is needed if one would like to populate input fields in a PDF document with data.

参数

此函数没有参数。

返回值

Returns a FDF document handle, or false on error.

示例

示例 #1 Populating a PDF document

<?php
$outfdf
= fdf_create();
fdf_set_value($outfdf, "volume", $volume, 0);

fdf_set_file($outfdf, "http:/testfdf/resultlabel.pdf");
fdf_save($outfdf, "outtest.fdf");
fdf_close($outfdf);
Header("Content-type: application/vnd.fdf");
$fp = fopen("outtest.fdf", "r");
fpassthru($fp);
unlink("outtest.fdf");
?>

参见

add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top