PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

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()