It seemed that when creating a PdfStamper, there is a PdfWriter created
inside of it.
Since I have a different PdfWriter that I created for the main PDF file, i
tried to redirect the output of the PdfWriter inside of the PdfStamper to
the main PdfWriter.
Is this not supposed to work?

writer.getDirectContent().add(stamper.getOverContent(1));
I get java.lang.RuntimeException: Inconsistent writers. Are you mixing two
documents?

Is the only solution to write the PdfStamper to a temp file, and then open
it later to copy it?
If I do this, it works fine.

-- 
View this message in context: 
http://www.nabble.com/PdfStamper-appending-to-existing-file-tp21937884p21939284.html
Sent from the iText - General mailing list archive at Nabble.com.


------------------------------------------------------------------------------
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
_______________________________________________
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

Reply via email to