This works flawlessly now :)  Thanks a bunch.

My first mistake was to use my 'originalReader' in the call to my
PdfStamper.
ByteArrayOutputStream baos = new ByteArrayOutputStream();
PdfStamper stamp = new PdfStamper(originalReader, baos);

When I looped my second call to the PdfStamper resulted in:
com.lowagie.text.DocumentException: The original document was reused. Read
it again from file.

Rose Vidal

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Paulo
Soares
Sent: Thursday, September 08, 2005 2:35 PM
To: Bruno Lowagie; [email protected]
Subject: Re: [iText-questions] Create pdf file with multiple page

Better yet (and faster):

PdfReader originalReader = new PdfReader("HelloWorldLetter.pdf");
PdfReader reader = new PdfReader(originalReader);


----- Original Message -----
From: "Bruno Lowagie" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Thursday, September 08, 2005 7:26 PM
Subject: Re: [iText-questions] Create pdf file with multiple page


> > PdfReader reader = new PdfReader("HelloWorldLetter.pdf");
>
> About the example I posted earlier today, Rose Vidal asked me a question
> that made me realize that it probably would be better not to create
> PdfReader this way, but to read the file into a byte array (or a
> RandomAccessFileOrArray object) and reuse that array to avoid multiple
> disk access.
> br,
> Bruno
>
>
> -------------------------------------------------------
> SF.Net email is Sponsored by the Better Software Conference & EXPO
> September 19-22, 2005 * San Francisco, CA * Development Lifecycle
Practices
> Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
> Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
> _______________________________________________
> iText-questions mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/itext-questions



-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions



************************************************************************** 
This e-mail and any files transmitted with it may contain privileged or 
confidential information. It is solely for use by the individual for whom 
it is intended, even if addressed incorrectly. If you received this e-mail 
in error, please notify the sender; do not disclose, copy, distribute, or 
take any action in reliance on the contents of this information; and delete 
it from your system. Any other use of this e-mail is prohibited. Thank you 
for your compliance.





-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to