Paulo,

Paulo Soares wrote:
> 
> Yep, that's a bug that only occurs in append mode.
> 

As I mentioned in another posting here, this bug does not occur when
instantiating the PdfReader using a RandomAccessFileOrArray(). I'm in the
fortunate position that I can easily switch to using that constructor.
Others might not be, though.

I'm interested, though, what the reason was for introducing that
eliminateSharedStreams() call in readPdf in the first place.

On the one hand, considering that eliminateSharedStreams() does nothing when
called for one page documents, its call here seems to have been introduced
to separate the content streams for different pages (e.g. when a document
contains many forms differing only in the values entered) to be able to
manipulate them individually.

On the other hand that reasoning would not differ for documents read with
the constructor that calls readPdfPartial() instead of readPdf()...

The check-in comment accompanying the introduction of that call
unfortunately doesn't explain anything.

Regards,   Michael.
-- 
View this message in context: 
http://old.nabble.com/Problem-with-PdfReader.eliminateSharedStreams%28%29-in-concert-with-appending-PdfStamper-tp26734822p26774131.html
Sent from the iText - General mailing list archive at Nabble.com.


------------------------------------------------------------------------------
Return on Information:
Google Enterprise Search pays you back
Get the facts.
http://p.sf.net/sfu/google-dev2dev
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/

Reply via email to