Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

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

What is FDF?

  • Author

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

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

  • Author

Woah, my mistake. The file wasn't in the archive :

here it is again

fdfsample.zip

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.

  • Author

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.

I'm afraid I don't follow. I suggested exporting directly from a field - no external scripting should be necessary.

  • Author

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.

Here's a simple file that generates a text file identical to yours (except the encoding).

FDFgen.fp7.zip

  • Author

Oh wow, that's really cool. I'll go through the code and post back with any question I may have.

Thanks a bunch!

Let us know how it goes, so that we know in case this question comes up again.

  • 1 year later...

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?

Create an account or sign in to comment

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.