Skip to main content
Participant
March 2, 2018
Answered

Create .fdf file

  • March 2, 2018
  • 5 replies
  • 23273 views

Hi. I need to create a .fdf file with data from a .txt file or an excel file to allow me to import data into forms. The only joy I have had is being able to export the data from acrobat, but not creating a .fdf file from another source. Thanks for any light you can shine on this.

Correct answer Thom Parker

There is of course the Acrobat Forms Data Format (FDF) Toolkit

But there are no applications for just generating FDF files, except of course Acrobat. 

You could write an Acrobat script to read the data out of the text file and use Acrobat to create FDF files. This is exactly the type of thing I do, so send me a message if you're interested.  You can contact me by sending a message through www.pdfscripting.com

5 replies

BwanaBawb
Participant
March 8, 2024

I create them using a custom Java program.
The file format is text (i.e., readable), but is completely syntax specific - like all computer instructions.
Open one up and take a look at it.
For the most part it's copy/paste.
But, fieldnames and data fields are what get modified from one FDF to another, at least for a given PDF Form.
Within this page is the format for creating an FDF file.
https://appligent.com/docs-fdfmerge

Abambo
Community Expert
Community Expert
March 9, 2024

Is that a for free or for pay software.

ABAMBO | Hard- and Software Engineer | Photographer
BwanaBawb
Participant
March 9, 2024

It's a trivial piece of software embedded in a custom Java program.

e.g., LastName & FirstName refers to editable data fields in MyName.pdf.
(all other text remains the same):

%FDF-1.2
1 0 obj
<<

   /FDF
   <<

      /Fields
      [
         <</T(FirstName)   /V(Joe)>>
         <</T(LastName)   /V(Cool)>>
      ]
      /F(MyName.pdf)
   >>
>>
endobj
trailer
<</Root 1 0 R>>
%%EOF

Known Participant
May 21, 2020

No this question was not solved, I don't think.  That is, suggesting someone buy your product is not answering the question.

 

Thom Parker
Community Expert
Community Expert
May 22, 2020

What do you mean? The FDF toolkit is free.

 

 

Thom Parker - Software Developer at PDFScriptingUse the Acrobat JavaScript Reference early and often
Participant
April 22, 2021

The link that you posted doesn't actually show you HOW to do it without a membership...

Thom Parker
Community Expert
Community Expert
March 2, 2018

Here is another resource that shows how to import data into a PDF:

https://www.pdfscripting.com/public/ExcelAndAcrobat.cfm

Thom Parker - Software Developer at PDFScriptingUse the Acrobat JavaScript Reference early and often
try67
Community Expert
Community Expert
March 2, 2018

FDF files are not easy to work with. You can import form data in the form of a tab-delimited text file, though. That's much easier.

Thom Parker
Community Expert
Thom ParkerCommunity ExpertCorrect answer
Community Expert
March 2, 2018

There is of course the Acrobat Forms Data Format (FDF) Toolkit

But there are no applications for just generating FDF files, except of course Acrobat. 

You could write an Acrobat script to read the data out of the text file and use Acrobat to create FDF files. This is exactly the type of thing I do, so send me a message if you're interested.  You can contact me by sending a message through www.pdfscripting.com

Thom Parker - Software Developer at PDFScriptingUse the Acrobat JavaScript Reference early and often