Hi,
I am deserately trying to add a blank page to an existing pdf I have
tried several diffrent ways and still come up with the same result, no
errors and no blank page. this is my latest attempt:

PdfReader reader = new PdfReader(pdfFileName);
int n = reader.getNumberOfPages();
staticLog.error(msgPrefix + "the number of pages in this file is " + n);
document = new
com.lowagie.text.Document(reader.getPageSizeWithRotation(1));
writer = new PdfCopy(document, new FileOutputStream(_newPath));
document.open();
PdfImportedPage page;
for (int i = 0; i < n;) {
  i++;
 page = writer.getImportedPage(reader, i);
 writer.addPage(page);
 staticLog.error(msgPrefix + "Processed page " + i);
}
writer.newPage();
writer.add(reader.getCropBox(1));
writer.close();
document.close();
 
Please if any body cantell me what I'm doing wrong please respond I've
been banging my head against this all day!
thanks.
-fw


Frederick Wells
Capps Digital
35 W Wacker
30th Fl.
Chicago, IL
312.220.3056
www.cappsdigital.com


-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g. 
Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to