PHP 手册
上一页 |  | 下一页

# fdf_create

(PHP 3 >= 3.0.6, PHP 4, PHP 5)

fdf_create -- Create a new FDF document

## 说明

resource fdf_create ( void )

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"); ?>`

## 参见

fdf_close()
fdf_save()
fdf_open()

上一页 | 起始页 | 下一页
fdf_close | 上一级 | fdf_enum_values