Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 5346 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted (edited)

Hi there, I need a way to generate FDF files; I figure if I can make a text file, I can change the extension from txt to fdf and have it work, however there are a few file markers that need to be in the fdf for it to work which may cause problems in writing them to the text file. Those markers are:

%FDF-1.2

%âãÏÓ

%%EOF

Any assistance would be much appreciated.

Cheers!

Pedrom Adeli

Edited by Guest
Posted (edited)

It's a format that stores PDF field information, here's what a really simple FDF file looks like.

edit:

Open the file inside with wordpad or notepad.

fdfsample.zip

Edited by Guest
rephrase
Posted

I can not remember not being able to open a file that was zipped before, but your file keeps creating archives of itself.

Looks like a windows member will have to help you.

Lee

Posted

It looks like it will always contain data from a single record? If so, you could calculate the contents in a calculation field, then use Export Field Contents to create your file.

This assumes that Acrobat can handle the UTF-16 encoding that Filemaker invariably uses when exporting a single field. If not, then exporting as XML with a suitable style-sheet would be a good choice.

Posted

It looks like it can handle UTF-16, I'm still having an issue with writing the information to a file. I'm using the old "echo $text >> file" method however, I'm running into a problem with the "<<" section of the FDF format.

Posted

I've just upgraded to FM 9 Advanced and I'm writing a function; I'm not entirely clear on how I can export the fields to fit that template... if you could walk me through it, it would be greatly appreciated.

  • 1 year later...
Posted

When you export the field contents do you change the extension to fdf?

I have changed the name in the fdf file to match the name of a pdf form that I have on my desktop and then tried to export the field contents with an .fdf extension and then open with Adobe Reader and Acrobat but it says that the file is damaged... any ideas?

This topic is 5346 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.