The fix is in C# too. I loaded the file with PdfReader 5.3.0 without
any problems. The OP stack trace has a rebuild but that doesn't happen
with me, the pdf is clean.

Paulo

On Wed, Jul 11, 2012 at 12:15 PM, mkl <m...@wir-sind-cool.org> wrote:
> mindrani,
>
> mindrani wrote
>>  http://itext-general.2136553.n4.nabble.com/file/n4655546/GSARescind.pdf
>> GSARescind.pdf
>>
>> The PDFReader fails when loading the PDF in attachment - GSARescind.pdf
>
> Not only the C# version fails here, the old Java versions (before 5.0.3)
> did, too.
>
> The problem is the object stream 16 0 with this content:
>
> 32 0 33 53 <</ProcSet[/PDF/Text/ImageB]/XObject&lt;&lt;/Im0 15 0 R>>>>2208
>
> More exactly the second and last object here, the integer 2208, was the
> problem: When PRTokenizer tried to read this object in nextValidToken(), it
> also checked whether there was not just an integer but instead an object
> reference, i.e. two integers and a 'R'. During this check the stream ended
> (setting the type to ENDOFFILE) and nextValidToken() did not change the type
> entry back to NUMBER which it should do at level 1.
>
> It has been fixed (in Java) in svn revision 4486 the hard way: before
> nextValidToken() is used to read an object from an object stream, the first
> object is peeked at, and if it is an integer, this integer is used.
>
> (But what if the object in the object stream actually contains an object
> reference? It would be recognized as integer instead. But is an indirect
> object containing only an object reference valid?)
>
> Maybe this fix is not yet in the C# version or not correctly ported?
>
> Regards,   Michael
>
> --
> View this message in context: 
> http://itext-general.2136553.n4.nabble.com/PDFReader-fails-when-loading-the-PDF-tp4655546p4655582.html
> Sent from the iText - General mailing list archive at Nabble.com.
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> iText-questions mailing list
> iText-questions@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/itext-questions
>
> iText(R) is a registered trademark of 1T3XT BVBA.
> Many questions posted to this list can (and will) be answered with a 
> reference to the iText book: http://www.itextpdf.com/book/
> Please check the keywords list before you ask for examples: 
> http://itextpdf.com/themes/keywords.php

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php

Reply via email to