Caoimhin Barry wrote:
Thanks, so if I use PdfCopy to import and edit a
page in the following way (getting at
the direct content) would it preserve the
annotations?
The code you have sent contains errors:
PdfCopier=new PdfCopy(document, new
FileOutputStream("ouputdoc.pdf"))
doesn't make sense.
This looks more like it:
PdfReader reader = new PdfReader("Hello1.pdf");
Document document = new Document(reader.getPageSizeWithRotation(1));
PdfCopy writer = new PdfCopy(document, new
FileOutputStream("Hello123.pdf"));
document.open();
writer.addPage(writer.getImportedPage(reader, 1));
reader = new PdfReader("Hello2.pdf");
writer.addPage(writer.getImportedPage(reader, 1));
reader = new PdfReader("Hello3.pdf");
writer.addPage(writer.getImportedPage(reader, 1));
document.close();
-------------------------------------------------------
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