Refers to form fields used in Adobe Acrobat
Questions tagged [acrofields]
124 questions
1
vote
1 answer
iText Fields Won't Calculate After Merging Forms
I am using this script to loop through a users files and fill out a copy of the details.pdf template and merge them all together as one file.
The problem i have is that the tfTotalPrice field isn't calculating until i manually open the document…

knutter539
- 74
- 8
1
vote
2 answers
PDFBox how to import acrofield from another pdf
I have a problem with import exist acrofield from a pdf into another pdf.
The two pdf are similar. I tried to import and save the file (code below). if I open it from the file system I do not see the changes, but if I open it with pdfbox I see the…

mikch
- 31
- 5
1
vote
0 answers
Changing the color of an iTextSharp Checkbox AcroField
I'm trying to populate a form with a few AcroFields using iTextSharp. There are a couple of text fields and a checkbox field, and by default the fields are filled out in blue. I'd like these fields to be filled out in black.
Changing the textfields…

iamhungry129
- 144
- 8
1
vote
0 answers
How to rename a PDF field when a duplicate field name exists using iTextSharp & C#
Goal: My intent is to help a user outside of my organization upload any multipage PDF that has multiple fillable fields inside of PDF document where some of the fields were unknowingly tagged with the same name. If the users were internal we could…

Solo812
- 401
- 1
- 8
- 19
1
vote
2 answers
Filling Acrofield does not work as intended
I'm having hard times with this issue. I've a PDF File with fields so the user can fill them.
I'm using iTextSharp (on vb.net) to open the PDF file, read the fields and write the data back (and show it to the user).
Doc is not locked nor does it…

Esselans
- 1,540
- 2
- 24
- 44
1
vote
0 answers
iText .setFontSize Exception dict.not.contain.font.data
I am trying to a PDF form that data is filled via a Java EE backing bean using iText libraries. The form was created using InDesign by layering text fields on top of a form image, then exporting it to a PDF. My problem is that the font size does…

Dan
- 11
- 1
1
vote
0 answers
PDF Acrofields convert to json object
I'm trying to find a solution for my problem for days now, but I haven't found a solid one still. My problem is that I want to convert the AcroFields from my Editable PDF form and convert them into a JsonObject using java and gson.
The format of…

Jan Galban
- 13
- 4
1
vote
1 answer
Add a text field to a PDF form with default value using iText
We have a PDF form with existing fields, and we are trying to add new fields to the form, with default values, without success. Basically we are doing as follows:
PdfReader reader = new PdfReader(new FileInputStream(new…

Jose L Martinez-Avial
- 2,191
- 4
- 28
- 42
1
vote
0 answers
Special alignment/input on pdf fields with itextsharp like for zip codes
I've got some trouble when I fill a PDF-Form with itextsharp. There are special fields e. g. the zip code. The pdf formular that I have to use is an specification that can't be modified!
That's when I put numbers in with my own hands:
normal user…

Aci
- 11
- 2
1
vote
1 answer
NullPointerException in itextpdf during Form flattening with Acrofields
I have a six page PDF with some acrofields on each page.
I have deleted page 4 and 5 using following code :
List pagesToKeep = Arrays.asList(new int[]{ 1, 2, 3 });
pdfReader.selectPages(pagesToKeep);
But then on Form freezing using…

Narendra
- 151
- 1
- 12
1
vote
1 answer
Get row count of a multiline AcroField
I have a PDF with AcroFields. Some fields are multi-line fields. I have a requirement to populate AcroFields with given text and pad any remaining space in the field with an "*" (or a predefined character/string). I can add text using iText, but…

Chamila
- 13
- 4
1
vote
1 answer
IText AcroField Character size
I am a creating acrofields in java with a stamper (As shown below) and I am wanting to find a way to know the length of a acrofield. I want to be able to determine the length of a string I am going to input in the acrofield and if it is too long…

Justin
- 866
- 1
- 13
- 29
1
vote
1 answer
Can I find bordercolor of a field in PDF using iText?
Is there anyway of finding the bordercolor of a specific field in my PDF using iText latest version? I could get AcroField.Item, but I dont see an option to get bordercolor from there.

javaAndBeyond
- 520
- 1
- 9
- 26
1
vote
1 answer
Special characters in PDF form fields and global and fieldbased DR
I have a question regarding a weird form field behaviour.
Two pdf documents, both have textfield(s) using Helvetica as a font
Both are filled with values using the same iText logic (cp. below)
The field value (/V) is correct for both PDFs however…

Lonzak
- 9,334
- 5
- 57
- 88
1
vote
3 answers
Wrapping of Arabic text using Acrofields in Itext 5.5
I have made a pdf template with a multi-line textbox and have to set some Arabic data in the Acrofields using PDFStamper.
The run direction of text is correct for the first line but it changes when text wrapping occurs.
Please guide.
package…

aanchal
- 33
- 1
- 12