Refers to form fields used in Adobe Acrobat
Questions tagged [acrofields]
124 questions
3
votes
1 answer
Creating Image Form Fields for PDFs in iText 7 .NET/C#
I am trying to create a form field in a PDF where the user can insert an image file and save the document so that the image is persistent (in a new PDF document, as opposed to altering an existing document). I know this is possible, because I've…

Gebodal
- 345
- 2
- 12
3
votes
1 answer
Put a Button on PDF with PDFBox 2.x
I hope somebody can help me with my Problem with Buttons and Textfields on a PDF created with PdfBox 2.x.
I tried to put a Button on my Page, which sets a Date in a Textfield with a Javascript function. That works fine.
I then tried to put the…

Thomas F.
- 33
- 7
3
votes
1 answer
Get pdf page number by acrofield using itext7 with C#
With iText7, I like to get pdf page number by form field but I can't find method or property of getting page number.
IDictionary fields = form.GetFormFields();
PdfFormField field = fields["fieldName"];
field.page <-- there is…

Michael Zhang
- 47
- 2
- 6
3
votes
1 answer
Change AcroFields order in existing PDF with iText?
I have a pdf with text form fields at are layered one on top of the other. When I fill the fields via iText and flatten the form, the form field that I had created on top of the other form field is now on the bottom.
For instance, I have a text…

Matt
- 33
- 5
3
votes
1 answer
Need to auto-populate info to fillable PDF online, be able to edit the data, and then save directly to server
I'm working on a project where one of the main focuses is that the user be able to auto-populate an already-created industry-standard fillable template PDF form with data, then edit fields that were not populated (and/or fields that were populated)…

Tim Caviness
- 43
- 1
- 7
3
votes
2 answers
getting null when call acroform.getFields() using pdfbox
I tried to get All the fields available in pdf form but I'm encountering a NullPointerException when calling acroform.getFields() using PDFBox.
Sample:
pdDoc = PDDocument.load(fileName);
PDAcroForm form =…

sudhan sudh
- 31
- 1
- 2
2
votes
1 answer
How to disable rendering of form fields in GhostScript
I am using GhostScript to render PDF files to PNG images. However, I have discovered that some PDF's have form fields that contain data (in this case todays date) that I would not like to be present in the output image. Is it possible to disable…

Oskar Sjöberg
- 2,728
- 27
- 31
2
votes
2 answers
How to extract field names, and properties, from PDF form?
I have 40+ forms and I want to make sure that common fields have the same names. This would greatly help me in storing and sorting the entries.
Apart from that i want to make sure the formatting is consistent through all the forms. Is there a way i…

Ahmed
- 117
- 2
- 12
2
votes
1 answer
Add Signature field to pdf in javascript
after hours of searching for a solution, I've decided to ask my first question on stackoverflow.
Our application uses pdf-lib (https://www.npmjs.com/package/pdf-lib) to modify existing PDFs, e.g. add images. We're now looking for a way to ad…

Alexander Haegler
- 57
- 1
- 5
2
votes
1 answer
How do I use custom fonts for AcroForm fields in a PDF generated from XHTML with Flying Saucer and OpenPDF?
I seem to have a problem that I'm unable to solve on my own.
I'm using flyingsaucer-9.1.20 with openpdf-1.3.22 to generate PDFs from an XHTML source.
My customer's CI demands Verdana as font for all their documents. So I embedded the font and…

Lexx
- 41
- 4
2
votes
2 answers
How to make Check Boxes render in PDF using Perl's PDF::API2
I've been trying for days to get a CheckBox or Radio Button to render using PDF::API2 and haven't been able to.
I've poured over the PDFMark reference, PDF specification, and any examples I've been able to find. I can get simple Widget annotations…

E-Rock
- 180
- 7
2
votes
1 answer
pdfStamper.AcroFields.SetField dont keep appearance settings
I use iTextSharp 5.5.13 to create pdf file with text AcroFields and in a second step edit the pdf filling the AcroFields with some values.
For some fields i have to set a character spacing, so i use CreateAppearance method. this is the code:
var…

Claudio
- 133
- 2
- 11
2
votes
1 answer
Digital Signature become invalid after filling pdf form
I create a pdf document and specify few acro-fields. These acro-fields used to
be filled by java itext library. This document is digitally signed after adding all required acro-fields.
We already set form filling property in digital signature but…

user3212707
- 45
- 6
2
votes
1 answer
How can I get the page number for a specific field in iText?
How can I get from which page is the field coming from?
PdfReader reader = new PdfReader(path);
AcroFields fields = reader.getAcroFields();
Set fieldNames = fields.getFields.keySet();
for(String fieldName : fieldNames)
{
String…

Andrei Mihuț
- 47
- 1
- 8
2
votes
1 answer
Slow access to AcroFields (iTextSharp)
I'm using iTextSharp to extract SignatureNames from a PDF.
I encountered problems (excessive slowness) accessing AcroFiels of big size and many pages PDF (~40MB and ~5000 pages).
Here my code snippet:
using iTextSharp.text.pdf;
private static…

alessandrotoro
- 35
- 4