Questions tagged [xfdf]

XFDF is the XML version of the "Forms Data Format (FDF)" specification. It is designed to representing form data and annotations that are contained in a PDF form.

XFDF is the XML version of the "Forms Data Format (FDF)" specification. It is designed to representing form data and annotations that are contained in a PDF form.

XFDF stands for "XML Forms Data Format". Where the original FDF uses syntax and file structure similar to a PDF document, XFDF uses XML. This makes it easier to build many XFDF structures than their FDF counterparts. However, XFDF does not implement most features of the original FDF, including: Status, Encoding, JavaScript, Pages keys, EmbeddedFDFs, Differences and Target.

The correct MIME Type to use for .xfdf files is application/vnd.adobe.xfdf.

XFDF was introduced in 2003 in PDF version 1.5, the full XFDF 2.0 specification is available from Adobe as a separate document.

54 questions
21
votes
4 answers

Merge FDF data into a PDF file using PHP

Is it possible to merge FDF data with a PDF file using PHP alone? Or is there no option but to use a 3rd party command line tool to achieve this? If that is the case can someone point me in the direction of one? I am currently outputting the FDF…
James
  • 1,397
  • 3
  • 21
  • 30
12
votes
13 answers

Flatten FDF / XFDF forms to PDF in PHP with utf-8 characters

My scenario: A PDF template with formfields: template.pdf An XFDF file that contains the data to be filled in: fieldData.xfdf Now I need to have these to files combined & flattened. pdftk does the job easily within php: exec("pdftk template.pdf…
Mateng
  • 3,742
  • 5
  • 37
  • 64
4
votes
1 answer

Export and merge annotations from a PDF to another PDF

I'm looking for a way to export the annotation layer of a PDF and merge it back in another PDF. I've tried using libraries like poppler and PyPDF2 but nothing worked so far. Are there any open-source libraries that could do what I want?
4
votes
1 answer

PDFtk and XFDF file NOT filling in form

I have a pdf template file with form fields (amount_1, amount_2 etc) I created an XFDF file and am using PDFtk via command line to fill the form and flatten the file. However, when I run the command below, the new pdf is created but the fields are…
fredmarks
  • 327
  • 5
  • 14
3
votes
0 answers

Insert dynamic image into PDF using XFDF file

I have a PDF document which I am filling with dynamic content from a html form. Up until now it has only been text and checkboxes. However I now need to add an image into the PDF (the image is always changing). Using the code at…
Patrick
  • 100
  • 1
  • 8
3
votes
3 answers

How can I convert a row with many columns to a table with two columns (fieldname and value) and many rows?

Since I hate asking for specific solutions, here's the background for my question in case I'm approaching it the wrong way. Skip to the bold line if you want to skip the background and get right to the question. I am creating a PDF form that will be…
Brian Schroth
  • 2,447
  • 1
  • 15
  • 26
3
votes
2 answers

XFDF URL reference to PDF form not working

I'm populating a PDF form using XFDF. The XFDF is produced by my Java webapp. I want to reference the PDF form from XFDF using a URL because I want form templates to be stored on the server. The form is password-protected, so I can't flatten it…
David Carboni
  • 1,556
  • 23
  • 24
3
votes
3 answers

pdftk + xfdf + php can't handle umlauts

I'm using XFDF files to fill out PDF-forms serverside with PHP and pdftk but my problem is that no non-english characters (ä, ö, å etc.) are printed to the form fields. Here is the function I use to parse the XFDF file: function…
dmni
  • 31
  • 1
  • 5
2
votes
0 answers

pdftk not able to open file

I am trying to fill data into a pdf from a xfdf file. pdftk /templates/pdf/2018/data_file_1.pdf fill_form /tmp/input_xfdf.xfdf output /tmp/output.pdf But It is showing this error. Error: Failed to open form data file: /tmp/input_xfdf.xfdf No…
shivankgtm
  • 1,207
  • 1
  • 9
  • 20
2
votes
0 answers

Merging xfdf into template pdf without losing some special characters (eg. ő,Ű,č)

I have an xfdf file, which is utf8 and may contain non ASCII characters. I would like to merge it with the pdf that contains the form. I tried with pdftk, and although merging happens correctly - in terms of all fields are being populated - some…
2
votes
1 answer

Convert exported PDF annotations between FDF and XFDF

I need to both analyze and generate PDF annotations based on FDF exports. I'd much prefer working with XFDF data and standard XML technology, but annotations are not exportable as XFDF by Foxit Reader, which happens to be the most convenient tool…
Thomas W
  • 14,757
  • 6
  • 48
  • 67
2
votes
2 answers

How to properly create XML header (to fill pdf documents in xfdf format) with Delphi using IXMLDOCUMENT

please I need help to achieve this xml, I have a problme with the third line, this is what I get with my code:
Hugo
  • 67
  • 1
  • 5
2
votes
2 answers

Applescript - Parsing XML

I try to create Applescript to extract value from .xfdf XFDF
chinna_82
  • 6,353
  • 17
  • 79
  • 134
2
votes
3 answers

merging XFDF with PDF form to create final PDF server-side?

This is what I have currently: User submits form data and gets a "download PDF" link. The link points to script which generates an XFDF file on the fly and outputs the XFDF file after setting the appropriate headers, etc. The XFDF file points to a…
Anthony
  • 36,459
  • 25
  • 97
  • 163
1
vote
1 answer

How to trigger checkboxes with XFDF

Here is what I have: First Last yes
kylex
  • 14,178
  • 33
  • 114
  • 175
1
2 3 4