Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

fdf_save_string(3) [php man page]

FDF_SAVE_STRING(3)							 1							FDF_SAVE_STRING(3)

fdf_save_string - Returns the FDF document as a string

SYNOPSIS
string fdf_save_string (resource $fdf_document) DESCRIPTION
Returns the FDF document as a string. PARAMETERS
o $fdf_document - The FDF document handle, returned by fdf_create(3), fdf_open(3) or fdf_open_string(3). RETURN VALUES
Returns the document as a string, or FALSE on error. EXAMPLES
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; ?> The above example will output: %FDF-1.2 %aaIO 1 0 obj << /FDF << /Fields 2 0 R >> >> endobj 2 0 obj [ << /T (foo)/V (bar)>> ] endobj trailer << /Root 1 0 R >> %%EOF SEE ALSO
fdf_open_string(3), fdf_close(3), fdf_create(3), fdf_save(3). PHP Documentation Group FDF_SAVE_STRING(3)

Check Out this Related Man Page

FDF_SET_VALUE(3)							 1							  FDF_SET_VALUE(3)

fdf_set_value - Set the value of a field

SYNOPSIS
bool fdf_set_value (resource $fdf_document, string $fieldname, mixed $value, [int $isName]) DESCRIPTION
Sets the $value for the given field. PARAMETERS
o $fdf_document - The FDF document handle, returned by fdf_create(3), fdf_open(3) or fdf_open_string(3). o $fieldname - Name of the FDF field, as a string. o $value - This parameter will be stored as a string unless it is an array. In this case all array elements will be stored as a value array. o $isName - Note In older versions of the FDF toolkit last parameter determined if the field value was to be converted to a PDF Name (= 1) or set to a PDF String (= 0). The value is no longer used in the current toolkit version 5.0. For compatibility reasons it is still supported as an optional parameter beginning with PHP 4.3, but ignored internally. RETURN VALUES
Returns TRUE on success or FALSE on failure. CHANGELOG
+--------+---------------------------------------------------+ |Version | | | | | | | Description | | | | +--------+---------------------------------------------------+ | 4.3.0 | | | | | | | Support for arrays in the $value parameter was | | | added. | | | | +--------+---------------------------------------------------+ SEE ALSO
fdf_get_value(3), fdf_remove_item(3). PHP Documentation Group FDF_SET_VALUE(3)
Man Page