• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Exporting Form data as FDF file?

New Here ,
Feb 21, 2019 Feb 21, 2019

Copy link to clipboard

Copied

I would like a simple way to export form data in a PDF as an FDF file. Currently, i can do it manually: Prepare Form > More > Export Data > Save

But I would like a button or action or something to do it with one step.

I found this page explaining how to make a button to do it: Setting action buttons in PDF forms, Adobe Acrobat

But this procedure only will upload the form data to a webserver or as an email with an attached FDF file. I just want to save the FDF file, with the same name as the source PDF, in the same directory.

Any ideas?  Thanks very much. -Steve

TOPICS
PDF forms

Views

3.2K

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
1 ACCEPTED SOLUTION
Community Expert ,
Feb 21, 2019 Feb 21, 2019

Copy link to clipboard

Copied

It's possible to do it but you would need to write a script with a trusted function and then place it in the application's Javascripts folder.

View solution in original post

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Feb 21, 2019 Feb 21, 2019

Copy link to clipboard

Copied

It's possible to do it but you would need to write a script with a trusted function and then place it in the application's Javascripts folder.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jan 21, 2025 Jan 21, 2025

Copy link to clipboard

Copied

Hi,

I know it is an old thread, but I tried to create an export option useable in Reader. I put this script in the privileged Folder:

 

myExportFunc = app.trustedFunction(function(eDoc,ePath)
{
app.beginPriv();
eDoc.exportAsFDF({cPath:ePath});
app.endPriv();
});

 

and called it with

 

var thepath = "/C/Users/Me/Desktop/example.fdf";

myExportFunc(this,thepath);

 

It works fine in Pro version but Reader does nothing. Am I missing something?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jan 21, 2025 Jan 21, 2025

Copy link to clipboard

Copied

It is possible  in Acrobat Reader when the file has Forms Rights.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jan 21, 2025 Jan 21, 2025

Copy link to clipboard

Copied

How to give "Forms Rights" exactly?

Since my Pro and Reader are both DC versions, I do not have to give additional rights, or so I read.

Nonetheless, the file is saved with additional Reader rights option.

Under the Properties > Security tab everything is allowed to be modified (no security preset).

So the Reader should have "Forms Rights", right?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jan 21, 2025 Jan 21, 2025

Copy link to clipboard

Copied

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jan 21, 2025 Jan 21, 2025

Copy link to clipboard

Copied

LATEST

Urgh, this is way above my level.

I feel so disillusioned, this went from "create a trusted function" like TRY67 suggested to this AEM monster.

Only to export 10 field values and import them to another local file. I guess it is not worth it.

Thanks for your help anyway!

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Feb 21, 2019 Feb 21, 2019

Copy link to clipboard

Copied

Here's an article on saving a PDF with a script. The technique is exactly the same as saving an FDF file.

https://acrobatusers.com/tutorials/how-save-pdf-acrobat-javascript

Here's the JavaScript reference entry for the function you need to save an FDF.

Acrobat DC SDK Documentation

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines