Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

fdf_open(3) [php man page]

FDF_OPEN(3)								 1							       FDF_OPEN(3)

fdf_open - Open a FDF document

SYNOPSIS
resource fdf_open (string $filename) DESCRIPTION
Opens a file with form data. You can also use fdf_open_string(3) to process the results of a PDF form POST request. PARAMETERS
o $filename - Path to the FDF file. This file must contain the data as returned from a PDF form or created using fdf_create(3) and fdf_save(3). RETURN VALUES
Returns a FDF document handle, or FALSE on error. EXAMPLES
Example #1 Accessing the form data <?php // Save the FDF data into a temp file $fdffp = fopen("test.fdf", "w"); fwrite($fdffp, $HTTP_FDF_DATA, strlen($HTTP_FDF_DATA)); fclose($fdffp); // Open temp file and evaluate data $fdf = fdf_open("test.fdf"); /* ... */ fdf_close($fdf); ?> SEE ALSO
fdf_open_string(3), fdf_close(3), fdf_create(3), fdf_save(3). PHP Documentation Group FDF_OPEN(3)

Check Out this Related Man Page

FDF_SET_FILE(3) 							 1							   FDF_SET_FILE(3)

fdf_set_file - Set PDF document to display FDF data in

SYNOPSIS
bool fdf_set_file (resource $fdf_document, string $url, [string $target_frame]) DESCRIPTION
Selects a different PDF document to display the form results in then the form it originated from. PARAMETERS
o $fdf_document - The FDF document handle, returned by fdf_create(3), fdf_open(3) or fdf_open_string(3). o $url - Should be given as an absolute URL. o $target_frame - Use this parameter to specify the frame in which the document will be displayed. You can also set the default value for this parameter using fdf_set_target_frame(3). RETURN VALUES
Returns TRUE on success or FALSE on failure. EXAMPLES
Example #1 Passing FDF data to a second form <?php /* set content type for Adobe FDF */ fdf_header(); /* start new fdf */ $fdf = fdf_create(); /* set field "foo" to value "bar" */ fdf_set_value($fdf, "foo", "bar"); /* tell client to display FDF data using "fdf_form.pdf" */ fdf_set_file($fdf, "http://www.example.com/fdf_form.pdf"); /* output fdf */ fdf_save($fdf); /* clean up */ fdf_close($fdf); ?> SEE ALSO
fdf_get_file(3), fdf_set_target_frame(3). PHP Documentation Group FDF_SET_FILE(3)
Man Page

3 More Discussions You Might Find Interesting

1. Programming

Opening a file during FTP

I need to process a file in real time as it is being FTPed from a remote server. In my test environment, I wrote a process that would: 1) Open the file - fopen(filename, "r") 2) Go to the offset where I left off on the previous itteration (fseek) 3) Read 2K blocks and append each block to a... (1 Reply)
Discussion started by: ceaker
1 Replies

2. Shell Programming and Scripting

Replace a string after n semicolon every line

I have a file that is formatted in this way. a1;b2;c33;d4;e5;e;f;f;f;s d;ds;d;a;v;b;g;gr;r;rt;fdf s1;s2;s2;s3;s4; b1;f2;g3;h4;a3c4e;xcsd;fds; sd2;fs4;fs2;sdf3; I want to replace the value just before the 4th semicolon to empty string, regardless the value, such that it looks... (3 Replies)
Discussion started by: alienated
3 Replies

3. Shell Programming and Scripting

sort command

i/p file o/p file (5 Replies)
Discussion started by: dvah
5 Replies