I need to keep the memory stream open so that I save it to a file later (I save it at the same path as the source file, meaning that I overwrite it). I could specify another file for saving, but it changes my whole code. I want to save it in a stream and then save the stream on top of the old file.
-----Original Message----- From: iText Software [mailto:i...@1t3xt.info] Sent: Wednesday, June 05, 2013 4:38 PM To: 'Post all your questions about iText here'; _ Subject: Re: [iText-questions] PDFStamper weird situation. On Wed, 05 Jun 2013 15:39:40 +0200, _ <k...@dataverse.gr> wrote: > But now it doesn't save the PDF correctly... If only you told us WHY you want to keep the stream open. You're not supposed to do that, because adding stuff after the %%EOF marker of a valid PDF usually breaks the PDF (unless you're creating an incremental update, but then you'd use two separate processes). ------------------------------------------------------------------------------ How ServiceNow helps IT people transform IT departments: 1. A cloud service to automate IT design, transition and operations 2. Dashboards that offer high-level views of enterprise services 3. A single system of record for all IT processes http://p.sf.net/sfu/servicenow-d2d-j _______________________________________________ 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