Refers to form fields used in Adobe Acrobat
Questions tagged [acrofields]
124 questions
11
votes
3 answers
Add image to acrofield in iText?
I'm trying to fill PDF using acrofields, I'm able to add string data perfectly, but having issues in adding images to acrofields.
This is my code for adding string data..
File f = new File("F:/Test/Agreement.pdf");
InputStream…

Anil M
- 1,297
- 2
- 19
- 42
10
votes
1 answer
PDF hostContainer callback
Following this SO solution here to notify clients of a click event in a PDF document, how is it possible to notify the client when the PDF gets submitted by the client using this.myPDF.submitForm("localhost/Handler.ashx?r=2) function?
The PDF File…

Maya
- 1,414
- 5
- 22
- 43
7
votes
2 answers
How to insert image programmatically in to AcroForm field using java PDFBox?
I have created simple PDF document with 3 labels: First Name, Last Name and Photo. Then I added AcroForm layer with 2 'Text Fields' and one 'Image Field' using Adobe Acrobat PRO DC.
So if I want to fill up the form I can open this PDF file in…

Renat Gatin
- 6,053
- 5
- 37
- 58
7
votes
2 answers
AcroForm values missing after flattening
I'm using LibreOffice 4.1.3.2 to produce a fillable PDF:
Created a Writer document
Set some text and test fields
Exported to PDF
Opening pdf file with Acrobar Reader shows a correct fillable pdf.
Next I use iTextSharp 5.4.5 to fill fields…

Marco
- 56,740
- 14
- 129
- 152
7
votes
1 answer
how to create a template PDF file with acrofields?
I need to create a new template PDF file with acrofields. Replace them with data from database and save it in a new file as PDF.
I found out that it can be implemented using itextsharp. But i am unable to find out how to create template PDF file…

siva
- 357
- 4
- 7
- 17
7
votes
1 answer
How to get the names of AcroField revisions in iText?
I'm currently working on a tool for applying and verifying digital signatures on pdf documents. I understand that each signature in a pdf document is applied to a certain revision of the AcroFields. Each time the user changes some input (i.e. by…

Tom
- 3,913
- 19
- 28
5
votes
1 answer
How to set Check Box Style to "Check" using iText in existing form?
I have PDF with acroForm that was created using Adobe Acrobat Standard DC.
There is Chekcbox field that I populate using Java iText 5.
When I was creating it in Properties I set it up Check Box Style to "Check" so it will put "V" style symbol when…

Renat Gatin
- 6,053
- 5
- 37
- 58
5
votes
1 answer
PDFBox API: How to change font to handle Cyrillic values in an AcroForm field
I need help with adding Cyrillic value to a field using the PDFBox API. Here is what I have so far:
PDDocument document = PDDocument.load(file);
PDDocumentCatalog dc = document.getDocumentCatalog();
PDAcroForm acroForm = dc.getAcroForm();
PDField…

Nenad Vichentikj
- 111
- 2
- 10
5
votes
1 answer
Adding a PDF fillable form (acrofield) using Apache FOP
I am trying to add a fillable form (so the end-user can insert information into it using acrobat reader and then save it) to a PDF I generate using Apache FOP. I can't seem to find any information on how this is done, if it is possible.
Google…

Kristof
- 1,684
- 2
- 23
- 49
5
votes
1 answer
Set AcroField Text Size to Auto
Using itextsharp, I'm attempting to set the font size of my form's text fields to auto.
I'm currently doing something like this:
Object d = 0.0;
PdfReader reader = new PdfReader(path);
byte [] pdf;
using (var ms = new MemoryStream())
{
…

Isaac Kleinman
- 3,994
- 3
- 31
- 35
5
votes
2 answers
Fill PDF template acrofield with HTML formatted text using iTextSharp
I am using iTextSharp to fill in a PDF template. The data I am using is kept in a database and is formatted HTML. My problem is that when I load the AcroField with this text I get it to do the line breaks, but no bold nor italics.
I have already…

user2212866
- 161
- 1
- 5
4
votes
1 answer
Unable to set Field Values using acrofields for form in Ms Word
I am trying to make a fillable pdf in Ms Word by providing forms like textField as explained here. Next i am trying to change the values of the form field as shown here.
However when i try it the values don't change and also the…

pranay
- 2,339
- 9
- 35
- 58
4
votes
1 answer
iTextSharp - move Acrofield
I have a process that inserts a table of content into an existing Acroform, and I am able to track where I need to start that content. However, I have existing Acrofields below that point that will need to be moved up or down, based on the height…

cro717
- 99
- 2
- 9
4
votes
3 answers
Read Check Box, Radio Button Name and values from PDF using iText Sharp
I have a fillable PDF contains CheckBoxes and RadioButtons and TextBox.
How do i get the CheckBox Name and its value also how do we know that it is a checkbox / Radio Button?
i'm using iTextSharp and have look at my below code
PdfReader pdfReader =…

Sankar M
- 4,549
- 12
- 37
- 55
3
votes
1 answer
itext lock some fields after sign - one field ok but second field sign cause error?
so i want to check if itext (version 8) is good for me needs
i need to add sign fields and based on them lock some other fields in acro form,
so i have it like :
PdfWriter writer = new PdfWriter("AddSignFieldItext77.pdf");
…

d00lar
- 802
- 7
- 25