FDF_SET_FILE(3) 1 FDF_SET_FILE(3)fdf_set_file - Set PDF document to display FDF data inSYNOPSIS
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)
Check Out this Related Man Page
FDF_OPEN(3) 1 FDF_OPEN(3)fdf_open - Open a FDF documentSYNOPSIS
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)
hi folks
how do i output contents of file in standard output.
in my script, i say
x=`cat filename'
echo $x
below is the actual file
***********
asda afdf fdf sdf dsfsdfsd fds dsfdfsdfsdg ssgd sgdg
sdfsdgfsdg dgfd gsfd gs sdg sfdg s
in my script, i am trying to output the... (4 Replies)
Hi All,
I have a requirement of dowloading the dynamic form content displayed in a webpage as a pdf file. The form content is not too complex but intermediate - it has textboxes, images, textarea, radiobuttons,dropdowns etc.
Can anyone suggest how i can achieve this? Your... (0 Replies)
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)