Re: [iText-questions] SubForm and Field Additions

2011-08-12 Thread 1T3XT BVBA
On 11/08/2011 22:30, Sanjeev Sharma wrote: > I have tried the following and it did not do any better That's strange. Stuff like this works for me. For instance: File1.pdf is the PDF with the hidden field (with writer.addAnnotation()). File2.pdf is the PDF where I change the content of the hidden fi

Re: [iText-questions] SubForm and Field Additions

2011-08-11 Thread Sanjeev Sharma
I have tried the following and it did not do any better, I am still not getting the data across to my swf that is embedded in the pdf. TextField tf = new TextField(writer, new Rectangle(1,1,1,1), "Data"); tf.setVisibility(TextField.HIDDEN); PdfFormField field = null; try {

Re: [iText-questions] SubForm and Field Additions

2011-08-11 Thread Sanjeev Sharma
Sorry you mentioned in your response that you did not understand what I was trying to do - hence I explained. I will try what you have mentioned. Thanks again for your time, I will let you know. Sanjeev Sharma http://www.infovista.com On 8/11/11 10:38 AM, "1T3XT BVBA" wrote: >On 11/08/2011

Re: [iText-questions] SubForm and Field Additions

2011-08-11 Thread 1T3XT BVBA
On 11/08/2011 17:24, Sanjeev Sharma wrote: > Now in order to have this Data field in the PDF - I need to be able to add > a field to the PDF that I am creating from scratch and here is what I did: > PdfFormField field = new PdfFormField(writer, > 0.0f,0.0f,104.08f,31.4f,PdfAction.createHide("data",

Re: [iText-questions] SubForm and Field Additions

2011-08-11 Thread Sanjeev Sharma
I am creating an brand new PDF file from scratch. I have added a table with various images and text in it. The main component one the PDF is the .swf (my flex application). In order to set data for this application do display - we do this: PdfReader reader = new PdfReader(chartTemplateFile.get

Re: [iText-questions] SubForm and Field Additions

2011-08-10 Thread 1T3XT BVBA
On 10/08/2011 22:45, Sanjeev Sharma wrote: > I want to be able to add the Data Field (hidden) as above so that my PDF > has a data field that I can set data and display. I'm a little bit confused because you're mixing XFA and AcroForm technology. I'm also not sure if you're talking about creating a

[iText-questions] SubForm and Field Additions

2011-08-10 Thread Sanjeev Sharma
This worked perfect - thanks - very much. Now I have a different issue. The PDF template that was originally there had a hidden field to which data was set using the following calls: PdfStamper stamper = new PdfStamper(reader, outputStream); AcroFields form = stamper.getAcroFields(); form.setFiel