Questions tagged [pdf-form]

PDF can contain interactive forms that allow users to enter information to be stored in the PDF. PDF Forms can be AcroForms or XFA forms (either static or dynamic). A single PDF can contain only one Form that spans the length of the document, no matter what pages the form fields appear on.

PDF can contain interactive forms that allow users to enter information to be stored in the PDF. PDF Forms can be AcroForms or XFA forms (either static or dynamic). A single PDF can contain only one Form that spans the length of the document, no matter what pages the form fields appear on.

177 questions
48
votes
10 answers

How do I enable saving of filled-in fields on a PDF form?

Some PDF forms can be saved, including all filled-in field data: Some others can not be saved, and all filled-in field data are lost: How do I enable saving of filled-in fields on my PDF form?
eleven81
  • 7,551
  • 10
  • 34
  • 47
14
votes
1 answer

PDF-Forms with Unicode chars

I am currently struggling with withing a PDF form created from a LibreOffice document. I created it like suggested in the book "iText in Action" and am now trying to pre-fill the embedded form with a few values, that can contain Unicode chars. This…
Mik86
  • 151
  • 5
14
votes
3 answers

PDF Form filling with FPDF and then Flatten with PDFTK displays un-filled PDF

I'm using the "Form Filling" script from fpdf.org to fill some fields on a PDF Form I created. This appears to work properly. I want the resulting PDF form to be flattened so users can not edit the form fields. I'm using PDFTK for that. However,…
user1855093
  • 313
  • 1
  • 2
  • 12
9
votes
1 answer

Iterating over all fields in a PDF form with JavaScript

I would like to modify some properties for all fields in a PDF form in response to the user clicking a button. Which property or method will return me the collection of fields so that I can iterate over them?
Bell
  • 16,167
  • 3
  • 21
  • 24
9
votes
2 answers

How to fill out a pdf file programatically?

What techniques available to fill a pdf form automatically using external data and save them. I have to use data from a database to fill a template pdf and save a copy of it on disk with that data. Language and platform is not issue but it would be…
particle
  • 3,042
  • 3
  • 24
  • 38
9
votes
11 answers

PDFBox: How to "flatten" a PDF-form?

How do I "flatten" a PDF-form (remove the form-field but keep the text of the field) with PDFBox? Same question was answered here: a quick way to do this, is to remove the fields from the acrofrom. For this you just need to get the document…
Lukas
  • 937
  • 1
  • 9
  • 17
8
votes
1 answer

Can a PDF fillable form post itself to an HTTPS URL?

I am building a webapp that will display PDFs. The PDFs have fillable forms. Instead of making the user save the form, and then re-upload it to the webapp, the idea is to adapt the PDF such that it can POST itself (when the user clicks) from inside…
alphadogg
  • 12,102
  • 7
  • 49
  • 81
8
votes
1 answer

Java PDFBox setting custom font for a few fields in PDF Form

I am using Apache PDFBox to read a fillable PDF form and fill the fields based on some data. I am using the below code (as per suggestions from other SO answers) to get the default Appearance String and changing it (as you can see below, I am…
user972391
  • 191
  • 1
  • 3
  • 16
8
votes
1 answer

Java pdfBox: Fill out pdf form, append it to pddocument, and repeat

I have a pdf form made and I'm trying to use pdfBox to fill in the form and print the document. I got it working great for 1 page print jobs but i had to try and modify for multiple pages. Basically it's a form with basic info up top and a list of…
Andrew
  • 175
  • 1
  • 2
  • 12
7
votes
3 answers

How can I stop Adobe Reader from asking "Save As" when saving a PDF form (i.e. allow just "Save")?

Does anyone know how to call Adobe Reader from the command line to open a pre-populated Adobe Form (with Extensions enabled) e.g MRBIGSORDER0001.PDF, allow the user to alter it and then do a save and exit? At present when the populated form is…
dmc2005
  • 516
  • 1
  • 4
  • 14
7
votes
1 answer

PDF form fill with PDFBox doesn't work

I have a PDF file with some form fields that I need to fill in from Java code. I use PDFBox library for this, and this code: PDDocument pdfDoc = PDDocument.load("C:\\Users\\igor\\Desktop\\test.pdf"); PDDocumentCatalog docCatalog =…
stojke
  • 543
  • 1
  • 6
  • 21
7
votes
1 answer

Fill in a PDF form from VBA (MS-Access)

I want to fill a PDF form from my MS-Access 2003 .mdb project. The PDF has been created with Adobe LifeCycle Designer ES 8.2, all fields have significant names. However, the users who will run the PDf-filling functionnality don't have LifeCycle…
dan
  • 3,275
  • 12
  • 49
  • 78
6
votes
1 answer

Use PDFBox to fill out a PDF Form

I have a pdf with a form in it. I am trying to write a class that will take data from my database and automatically populate the fields in the form. I have already tried ITextSharp and their pricing is out of my budget, even though it works…
Josh
  • 15,587
  • 25
  • 107
  • 149
6
votes
1 answer

PDFBox 1.8.10: Fill and Sign PDF produces invalid signatures

I fill (programatically) a form (AcroPdf) in a PDF document and sign the document afterwards. I start with doc.pdf, create doc_filled.pdf, using the setFields.java example of PDFBox. Then I sign doc_filled.pdf, creating doc?filled_signed.pdf, using…
Daniel Heldt
  • 297
  • 3
  • 14
6
votes
5 answers

Combining XFA with PDFBox

I would like to fill a PDF form with the PDFBox java library. The PDF form is created with Adobe Live Designer, so it uses the XFA format. I try to find resources about filling XFA PDF forms with PDFBox, but i haven't any luck so far. I saw that a…
OutOfBound
  • 1,100
  • 1
  • 19
  • 25
1
2 3
11 12