On 8/04/2012 9:47, Parminder Kaur wrote:
> I am trying to create a new TagProcessor to process custom input tags 
> and render a PdfFormField.

When you write a TagProcessor, you need to map an XML tag with an iText 
Element.

A PdfFormField is NOT an implementation of the Element interface, and it 
can't be added to the Document with document.add(); instead it's added 
to a PdfWriter using the addAnnotation() method.

This means you'll have to create a custom Element that knows how to add 
a PdfFormField to the writer. There are different ways to do this. 
You've copy/pasted a PdfPCellEvent. I don't understand why, because: 
where is the table? My first thought would be to use a Chunk with a 
generic tag...

I'm not saying it's not possible to do what you want, but you have 
plenty of work to do, and I fear you won't get much free advice on how 
to do it.

------------------------------------------------------------------------------
For Developers, A Lot Can Happen In A Second.
Boundary is the first to Know...and Tell You.
Monitor Your Applications in Ultra-Fine Resolution. Try it FREE!
http://p.sf.net/sfu/Boundary-d2dvs2
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php

Reply via email to