note 64158 added to ref.fdf
| From: | g8z at yahoo dot com | Date: | Sun, 09 Apr 2006 00:58:36 +0000 |
| Subject: | note 64158 added to ref.fdf | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-107576@lists.php.net to get a copy of this message | ||
<?php
/**
* Windows function to flatten an FDF file to a PDF document
* You can download pdfmerger.exe (free of course) from here:
* http://www.tufat.com/downloads/pdfmerger.zip
* Courtest of Darren's Script Archive: http://tufat.com
*/
function convertToPDF($path_to_pdf_file , $path_to_fdf_file, $path_to_new_pdf_file )
{
@unlink( $path_to_new_pdf_file );
exec( "pdfmerger.exe $path_to_pdf_file fill_form $path_to_fdf_file output
$path_to_new_pdf_file flatten" );
// if you have spaces in your directory paths, use this:
// exec( "$path_to_exe \"$path_to_pdf_file\" fill_form
\"$path_to_fdf_file\" output \"$path_to_new_pdf_file\" flatten" );
}
convertToPDF(
'"c:/path/to/file.pdf"',
'"c:/path/to/file.fdf"',
'"c:/path/to/output.pdf"'
);
?>
----
Server IP: 216.194.113.175
Probable Submitter: 24.182.33.247
----
X-Spam-Status: No, hits=3.1 required=5.0 tests=DATE_MISSING,FROM_NO_LOWER
autolearn=no version=2.64
----
Manual Page -- http://www.php.net/manual/en/ref.fdf.php
Edit -- http://master.php.net/note/edit/64158
Del: integrated -- http://master.php.net/note/delete/64158/integrated
Del: useless -- http://master.php.net/note/delete/64158/useless
Del: bad code -- http://master.php.net/note/delete/64158/bad+code
Del: spam -- http://master.php.net/note/delete/64158/spam
Del: non-english -- http://master.php.net/note/delete/64158/non-english
Del: in docs -- http://master.php.net/note/delete/64158/in+docs
Del: other reasons-- http://master.php.net/note/delete/64158
Reject -- http://master.php.net/note/reject/64158
Search -- http://master.php.net/manage/user-notes.php