fdf_save_string

(PHP 4 >= 4.3.0, PHP 5, PHP 7)

fdf_save_stringReturns the FDF document as a string

说明

fdf_save_string ( resource $fdf_document ) : string

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

参见

相关文章
php ibm db2 函数 returns a string containing the sqlstate returned by the last connection attemptphp fdf 函数 read a fdf document from a stringphp fdf 函数 returns the fdf document as a stringphp fdf 函数 save a fdf documentphp fdf 函数 set pdf document to display fdf data inphp grapheme 函数 returns part of haystack string from the first occurrence of case insensitive needle to the end of haystackphp json 函数 returns the error string of the last json encode or json decode callphp maxdb 函数 returns a string description of the last connect errorphp maxdb 函数 returns a string description of the last errorphp maxdb 函数 returns the maxdb client version as a stringphp maxdb 函数 returns a string representing the type of connection usedphp 多字节字符串 函数 returns position and length of a matched part of the multibyte regular expression for a predefined multibyte stringphp tidy 函数 returns the number of tidy accessibility warnings encountered for specified documentphp tidy 函数 returns the number of tidy configuration errors encountered for specified documentphp yp/nis 函数 returns the error string associated with the given error codephp hyperwave api 函数 returns statistics about document cache serverphp sdo das xml 函数 returns root element s uri stringphp sdo das xml 函数 returns sdo das xml document object for a given path to xml instance documentphp sdo das xml 函数 returns sdo das xml document for a given xml instance stringphp sdo das xml 函数 saves the sdo das xml document object to a string
关注编程学问公众号