PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

Home » File Formats » File_PDF » Bug #6809

Generated PDF not recognized by Adobe Reader 7.0.5

Details

Submitted2006-02-17 11:09 UTC
Fromrobin at 15augustus dot nl
Assignedyunosh
StatusNo Feedback
PackageFile_PDF
PHP Version4.3.10
OSFreeBSD 6.0
Roadmaps(Not assigned)

Comments

[2006-02-17 11:09 UTC] robin at 15augustus dot nl

Description:
------------
PDF's generated with File_PDF 0.0.2 are not recognized by Adobe Reader 7.0.5 running on my XP machine.

Looking at the resulting PDF I noticed that files generated by pdflib start with:

%PDF-1.4
%<E4><E3><CF><D2>
3 0 obj

while files generated with File_PDF start with:

3 0 obj

When I add those first characters and codes to the output stream Adobe Reader 7.0.5 correctly recognizes the file:

return "%PDF-1.4\n\xe4\xe3\xcf\xd2\n" . $pdf->getOutput();

I do not know what these codes mean, I also do not know if this is a proper fix.

Robin

[2006-03-10 15:19 UTC] eric at persson dot tm

A pdf header is entered in _beginDoc but it seems to be ignored, even though its added to the buffer it seems to be removed later on making it unavailable in the this->_buffer on output() and getOutput()