fdf_open Open a FDF document php函数


fdf_open

(PHP 4, PHP 5)

fdf_openOpen a FDF document

说明

resource fdf_open ( string $filename )

Opens a file with form data.

You can also use fdf_open_string() to process the results of a PDF form POST request.

参数

filename

Path to the FDF file. This file must contain the data as returned from a PDF form or created using fdf_create() and fdf_save().

返回值

Returns a FDF document handle, or FALSE on error.

范例

Example #1 Accessing the form data

<?php
// Save the FDF data into a temp file
$fdffp fopen("test.fdf""w");
fwrite($fdffp$HTTP_FDF_DATAstrlen($HTTP_FDF_DATA));
fclose($fdffp);

// Open temp file and evaluate data
$fdf fdf_open("test.fdf");
/* ... */
fdf_close($fdf);
?>

参见



相关阅读:
fdf_open_string Read a FDF document from a string
fdf_remove_item Sets target frame for form
fdf_save Save a FDF document
fdf_save_string Returns the FDF document as a string
fdf_set_ap Set the appearance of a field
fdf_set_encoding Sets FDF character encoding
fdf_set_file Set PDF document to display FDF data in
fdf_set_flags Sets a flag of a field
fdf_set_javascript_action Sets an javascript action of a field
fdf_set_on_import_javascript Adds javascript code to be executed when Acrobat opens the FDF
fdf_set_opt Sets an option of a field
fdf_set_status Set the value of the /STATUS key
fdf_set_submit_form_action Sets a submit form action of a field
fdf_set_target_frame Set target frame for form display
快速导航

Copyright © 2016 phpStudy |