Summary: | KPDF can't open this PDF file | ||
---|---|---|---|
Product: | [Unmaintained] kpdf | Reporter: | Jure Repinc <jlp> |
Component: | general | Assignee: | Albert Astals Cid <aacid> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Compiled Sources | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: | |||
Attachments: | PDF that can't be opened |
Description
Jure Repinc
2005-08-02 14:12:29 UTC
Created attachment 12049 [details]
PDF that can't be opened
This is the file that KPDF can't open.
SVN commit 442420 by aacid: Increase the range in which we look for %%EOF BUGS: 110034 M +5 -4 PDFDoc.cc --- branches/KDE/3.5/kdegraphics/kpdf/xpdf/xpdf/PDFDoc.cc #442419:442420 @@ -115,9 +115,9 @@ GBool PDFDoc::setup(GString *ownerPassword, GString *userPassword) { str->reset(); - char eof[8]; + char eof[9]; int pos = str->getPos(); - str->setPos(7, -1); + str->setPos(8, -1); eof[0] = str->getChar(); eof[1] = str->getChar(); eof[2] = str->getChar(); @@ -125,10 +125,11 @@ eof[4] = str->getChar(); eof[5] = str->getChar(); eof[6] = str->getChar(); - eof[7] = '\0'; + eof[7] = str->getChar(); + eof[8] = '\0'; if (strstr(eof, "%%EOF") == NULL) { - error(-1, "Document does not have ending %%EOF"); + error(-1, "Document does not have ending %%EOF"); errCode = errDamaged; return gFalse; } I have encountered a similar problem with the PDF at: http://www.softwarefactories.com/ScreenShots/MS-WP-04.pdf KGhostView opens it fine, as does AcrobatReader 7.0.8. Document-Info from Acrobat: PDF Version 1.3 Tagged: No Creator: QuarkXPress 4.11 Also preview (thumbnail) in konqueror works. sorry but the file you point to is not a pdf as it does not end in the mandatory %EOF |