Hello once more,

mkl wrote:
> 
> PdfReader reader = new PdfReader(new
> URL("http://old.nabble.com/file/p26756669/sample.pdf";));
> PdfStamper stamper = new PdfStamper(reader,
>       new FileOutputStream(new File(sample.out.pdf")), '\0', true);
> stamper.addSignature("sig", 1, 100, 100, 200, 200);
> stamper.close();
> 

As a final follow-up... when instantiating the PdfReader using a
RandomAccessFileOrArray:

PdfReader reader = new PdfReader(new RandomAccessFileOrArray("sample.pdf"),
null);

the problem does not occur... this is due to this constructor calling
readPdfPartial() instead of readPdf(). And in contrast to the latter, the
former method does _not_ call eliminateSharedStreams().

Regards,   Michael
-- 
View this message in context: 
http://old.nabble.com/Problem-with-PdfReader.eliminateSharedStreams%28%29-in-concert-with-appending-PdfStamper-tp26734822p26767966.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
iText-questions@lists.sourceforge.net
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