For reference, the goofy generator was:

PDFsharp 0.8.1

It has probably been corrected in later releases, but the problem will be encountered as the files still exist, and always will...

FYI, I have developed some PDF viewer software, and I use iText at times to check my compliance. I also work on another project that uses iText for PDF generation.

There are MANY pdf generators that do not generate pdfs that agree with the specification. It is amazing.





On Dec 28, 2006, at 1:20 PM, Paulo Soares wrote:


----- Original Message -----
From: "robert engels" <[EMAIL PROTECTED]>
To: "Post all your questions about iText here"
<[email protected]>
Sent: Thursday, December 28, 2006 6:18 PM
Subject: [iText-questions] PRTokenizer too restrictive


line 199 of PRTokenizer

        int idx = str.indexOf("%PDF-1.");

is unnecessarily restrictive. We have encountered otherwise valid
PDFs (that Adobe Reader is able to open).


Valid, no, broken. Just because Acrobat can open them doesn't make them valid. The "validity" also changes according to the Acrobat version you use
to open the file.

The line can be changed to

        int idx = str.indexOf("%PDF-");

with no adverse affects.


Why not? iText has already a lot of hacks to open broken files.

We have found some PDF generation software that uses a %PDF-0.0

I would like to know what crappy software does that. Don't they read the
specifications?

Paulo


---------------------------------------------------------------------- ---
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php? page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/

Reply via email to