Before I add the imported page to the output
file, I need to edit the content. How do I get
access to the PdfContentByte, make some changes
to that and then add it to the output file?
--- bruno <[EMAIL PROTECTED]> wrote:
> 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
>
______________________________________________________
Click here to donate to the Hurricane Katrina relief effort.
http://store.yahoo.com/redcross-donate3/
-------------------------------------------------------
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