fdf_next_field_name Get the next field name php函数


fdf_next_field_name

(PHP 4, PHP 5)

fdf_next_field_nameGet the next field name

说明

string fdf_next_field_name ( resource $fdf_document [, string $fieldname ] )

Gets the name of the field after the given field. This name can be used with several functions.

参数

fdf_document

The FDF document handle, returned by fdf_create(), fdf_open() or fdf_open_string().

fieldname

Name of the FDF field, as a string. If not given, the first field will be assumed.

返回值

Returns the field name as a string.

范例

Example #1 Detecting all fieldnames in a FDF

<?php
$fdf 
fdf_open($HTTP_FDF_DATA);
for (
$field fdf_next_field_name($fdf);
    
$field != "";
    
$field fdf_next_field_name($fdf$field)) {
    echo 
"field: $field ";
}
?>

参见



相关阅读:
fdf_open Open a FDF document
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
快速导航

Copyright © 2016 phpStudy |