July 2, 200817 yr 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 July 2, 200817 yr by Guest
July 2, 200817 yr 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 July 2, 200817 yr by Guest rephrase
July 2, 200817 yr 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
July 2, 200817 yr Author Woah, my mistake. The file wasn't in the archive : here it is again fdfsample.zip
July 3, 200817 yr 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.
July 3, 200817 yr 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.
July 3, 200817 yr I'm afraid I don't follow. I suggested exporting directly from a field - no external scripting should be necessary.
July 7, 200817 yr 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.
July 7, 200817 yr Here's a simple file that generates a text file identical to yours (except the encoding). FDFgen.fp7.zip
July 10, 200817 yr 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!
April 5, 201015 yr 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