fdf_save_string Returns the FDF document as a string php函数


fdf_save_string

(PHP 4 >= 4.3.0, PHP 5)

fdf_save_stringReturns the FDF document as a string

说明

string fdf_save_string ( resource $fdf_document )

Returns the FDF document as a string.

参数

fdf_document

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

返回值

Returns the document as a string, or FALSE on error.

范例

Example #1 Retrieving FDF as a string

<?php
$fdf 
fdf_create();
fdf_set_value($fdf"foo""bar");
$str fdf_save_string($fdf);
fdf_close($fdf);
echo 
$str;
?>

以上例程会输出:

%FDF-1.2
%????
1 0 obj
<<
/FDF << /Fields 2 0 R >>
>>
endobj
2 0 obj
[
<< /T (foo)/V (bar)>>
]
endobj
trailer
<<
/Root 1 0 R

>>
%%EOF

参见



相关阅读:
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
fdf_set_value Set the value of a field
fdf_set_version Sets version number for a FDF file
feof 测试文件指针是否到了文件结束的位置
fflush 将缓冲内容输出到文件
快速导航

Copyright © 2016 phpStudy |