Refers to form fields used in Adobe Acrobat
Questions tagged [acrofields]
124 questions
1
vote
1 answer
ITextSharp 4.1.6 - Remove existing line from PDF Template
I have a PDF template created in LibreOffice and I'm filling it in using AcroFields. In some rare cases I'd like to hide a particular field, thus I remove it using RemoveField method. It's border however stays in there. From what I've googled it…

Bruno Laurinec
- 910
- 2
- 11
- 27
0
votes
0 answers
How does text fields added to an acro form produce extra fields in the pdf Writer? Using iText7
I have successfully parsed my PDF document, the input file and produced the text fields I needed in my output file. However, I am getting doubles of my text fields and the second instance is a copy linked to the first and are in a wacky position on…

Dana Mowat
- 1
- 1
0
votes
1 answer
AcroFields' funcion setField doesn't add apostrophe on VB.NET
When adding a string that contains an apostrophe by using the AcroFields' method "SetField", the function removes the apostrophe from the string.
I tried to use a single accent but it was removed as well.
0
votes
0 answers
C# to read XFA form data - Syncfusion
everyone just updated Syncfusion and Itextsharp library on Visual Studio 2022 and got some errors.
before it worked for me well. will show your code.
codes are the following:
//Load the existing XFA form
FileStream loadStream = new…

Super W Star
- 21
- 3
0
votes
0 answers
iTextSharp add text to form copying information from a form field
TL;DR - Convert 'Acrofields.Item' font and size data to Phrase / TextField equivalents to create a clone copy of a form field as a Text label.
I realise iTextSharp has been replaced with iText7 but using that is not an option unfortunately. I have…

Symo
- 466
- 4
- 16
0
votes
0 answers
acrofields validation on mobile no taking isd code also in calculating the length of mobile no
I am using the following lines of code:
bos = new ByteArrayOutputStream();
blankStatutoryFormsFolder = CommonUtil.getLocalPath() + environment.getProperty("Blank_Statutory_Forms");
reader = new PdfReader(blankStatutoryFormsFolder +…

Bindu Kumari
- 21
- 1
- 1
- 6
0
votes
0 answers
Is there a way to add font with subset true to Acroform PDField
I have a pdf with PDTextField, on setting value(Ayşe) with font
PDFont font = PDType0Font.load(document,new FileInputStream("src/main/resources/fonts/ArialUnicodeMSBold.ttf"), true);
prints gibberish text.
Although with subset as false it works ,…

Vas K
- 93
- 9
0
votes
0 answers
iText does not work when adding many fields
i have problem in generating PDF with iTextPDF (no errors in console but no pdf in output).
AcroFields form = stamper.getAcroFields()
form.setGenerateAppearances(true)
form.setField("code", "value")
others fields.....
…

user3816170
- 319
- 12
- 20
0
votes
1 answer
How to use TTF font with PDFBox AcroForm and then flatten document?
I have been trying to make a fillable PDF file with LibreOffice Writer 7.2.2.2. Here is how the document looks like:
All fields right of the vertical lines are form textboxes, each one having its own name(tbxOrderId, tbxFullName...). Each textbox…

S. Kostadinov
- 147
- 3
- 10
0
votes
1 answer
iText - render html dropdown to editable pdf using c#
I have Dropdown list in HTM page. i want to convert this on editable pdf using iText Library. I Have to set AcroForms/field. it is unable to render dropdown html (select/option) tag.
expectation : Dropdown should be editable in PDF.
'
String…

SMI Studio
- 9
- 2
0
votes
1 answer
PDFBox with special characters working fine on Windows but characters getting replaced with other characters in Linux
My requirement is that I have a PDF Acroform Template with few text fields and based on logged in user these text fields are prepopulated with user's name and city and is presented to the user (Note user is not manually entering data into PDF but my…

sameer59
- 97
- 11
0
votes
0 answers
Java - PDFBox get String value from Radio button
Here is my following code :
for (PDField field: listFields) {
if (champs instanceof PDRadioButton) {
PDRadioButton pdRB =…

Treasm
- 23
- 4
0
votes
1 answer
PDFBOX acroForm filled but when opened in Acrobat reader values disappears
I have PDF form, I am trying to fill it with PDFBOX. It works, form is filled and I open with other reader or browser, I can see values, however When I tries to open in Adobe Reader values disappears, I tried every possible way to find out why But…

sam
- 77
- 1
- 6
0
votes
1 answer
Get page from found AcroForm form field
I have an existing PDF that I want to open up and add content to the page where a specific PDField (or specifically PDTerminalField, not that I think it matters) is on.
It may be on the first page or any later one.
I know the name of the field and…

luckydonald
- 5,976
- 4
- 38
- 58
0
votes
1 answer
Apache PdfBox how to set field font size
I am using org.apache.pdfbox to read pdf and outfill some fields.
Now I have to problem that the font size is much too big.
I thought it would be easy to set font size to 12 . But it is very complicated .
Actually it is awful. Does anyone know how…

Marcela28
- 17
- 1
- 5