Currios if I am on the right track here.
I have an Acro Form PDF with some rich text fields,
I need to replace some words in these text fields,
flatten and store the PDF as a new one, though still keeping the text rich
formatted.
My plan is:
1. Open the pdf,
2. Grab the content of the text field with
stamper.getAcroFields().getFieldItem("MyRichTextField")
.getValue(0).get(PdfName.RV)
3. Grab the position etc. and then remove the textfield from the pdf
4. Manually format and insert the content in the pdf.
5. Flatten the form and the store the PDF.
Is there any way to have itext to do step 4. Instead of manually formatting.?
Can I always be sure the the RV content Is at position 0 in the field item?
Thanks in advance
Claus
------------------------------------------------------------------------------
SOLARIS 10 is the OS for Data Centers - provides features such as DTrace,
Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
http://p.sf.net/sfu/solaris-dev2dev
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://www.1t3xt.com/docs/book.php
Check the site with examples before you ask questions:
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/