I have a large number of PDFs containing checkbox form fields with the wrong export value that I need to correct. I can see examples in the book on how to create a new RadioCheckField field and then set the appearance on it to get the export value set, but I can't find an example on how to do this on an existing field. Maybe I just need to know how to get a handle on an existing checkbox field as a RadioCheckField so I can turn around and set its appearance with the correct export value? I'm using iText 2.1.7. Thanks!
Need to avoid "There have been subsequent changes to the document" message when applying multiple signaturesSubmitted by epicriver on Tue, 10/02/2012 - 16:28
I work on an application that deals with electronically signing Loan documents. Many loan documents have multiple signature fields that are signed by different people. We have a signature tablet that prompts users for signatures based on the signature fields defined in the PDF and we apply the image to the signature fields.
So, I am at my wits end.
I was challenged to create an application using iText that duplicated functionality provided by the Perl PDF32 module to do some annotation work on existing PDFs.
Everything is sweet except for some display issues when users hi-light the annotations created by iText.
Here is a code snippet (pretty basic):
annot = new PdfAnnotation( stamper.getWriter() , rect );
annot.setBorder( new PdfBorderArray( 0 , 0 , 1 ) ); // dunno about this but the original code did it, so I will too
annot.setColor( getColor() ); // this makes is green
I have the following w2 pdf :
I am supposed to populate the Form with data coming from the database.
I am reading Chapter 6 and 8 but for now i need to write a proposal one of the largest insurance companies in the US.
What would be the approach :
1) Open the file with Adobe Acrobat and add acro field, then stamp the data runtime ?
2) I heard a way of using absolute x and y to set text without adding acro fields, would this approach would be undesirable.
I have a requirement where a web user log in to a company portal to see his w2 form in pdf format. The w2 data is pulled from a database. The w2 Form layout looks like the one u would see when u login to your company portal. What would be the best way to draw the W2 layout. Would i use itext api to dynamically draw the layout or should i generate a w2 empty pdf template, read it and then stamp it with the user data ? any other ways ?
We have a signature field set up to submit the form after a person signs the signature field (using a signature pad). The fdf stream is making it over to us fine as seen through Fiddler 2.0.
Where can i found de corret java compatibility version of bouncy castle with itext versions ?
I'm building a document out of three different pages.
- Page 1 and Page 3 are ACRO form templates that I populate programmatically and form - flattern.
- Page 2 is dynamic content.
- Once produced i combine the three streams in memory into one document.
- I then cycle through the combined document to add page numbers.
Each of the pages has reference to the same font which is registered in the fontfactory for bold and regular type.
In my implementation i use iTextSharp, but i think that is not the problem :)
I rotate the pages of an pdf-file with the following functions:
new PdfNumber(currentDegree + rotateDegree));
This works fine. When i view the file with the acrobat reader, the pages are rotated. But when i read the boxes, i see, that all boxes are the 'old' boxes and only the Rotation-property is set. Only the 'view' is rotated, but not the Trimbox itself (so like all boxes).
I want to be able to:-
1. add a small piece of text on each page of an existing document, and
2. possibly, at a later stage when I only have the modified document, to remove that piece of text.
I have successfully implemented part 1 by means of:-
PdfCopy.PageStamp stamp = copy.createPageStamp(page);
PdfContentByte over = stamp.getOverContent();
ColumnText.showTextAligned( ... );