note 19199 added to function.pdf-open-file

From: Date: Tue, 19 Feb 2002 16:30:57 +0000
Subject: note 19199 added to function.pdf-open-file
Groups: php.notes 
Request: Send a blank email to php-notes+get-26799@lists.php.net to get a copy of this message
Appending to PDF files: plainly, you can't. PDF files have an internal structure that would get corrupted by just appending to the file. You'd need to parse the PDF, create a new PDF and mix your additions with the old PDF. Just creating a new one should be *much* easier. Reading back the results: do a fopen() on the temporary file and use fgets() to read it. In your example where you just want to output the file, passthru should do the trick. -- http://www.php.net/manual/en/function.pdf-open-file.php http://master.php.net/manage/user-notes.php?action=edit+19199 http://master.php.net/manage/user-notes.php?action=delete+19199 http://master.php.net/manage/user-notes.php?action=reject+19199

« previous php.notes (#26799) next »