Caoimhin Barry wrote:

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?

Didn't I just answer this one?
You have to create your PDF in multiple passes.

Take a close look at the example I just posted:
http://article.gmane.org/gmane.comp.java.lib.itext.general/17942

Where it says:

AcroFields form = stamper.getAcroFields();
form.setField("field", "World,");
stamper.setFormFlattening(true);

Replace with:
PdfContentByte under = stamper.getUnderContent(i);
under.doStuff();
PdfContentByte over = stamper.getOverContent(i);
over.doStuff();

Remark that doStuff() is not a real method.

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

Reply via email to