Skip to main content
Participant
June 9, 2019
Question

import fdf

  • June 9, 2019
  • 2 replies
  • 486 views

I have several files that will need the same comments/notes. Instead of "file, open, comments, menu, import data, click on .fdf file, open, and save" im trying to place that in an action for execute java. Am I on the right path? I was able to find this online:

this.importAnFDF({cPath: this.path.replace(/\.pdf$/i, ".fdf")});

...just not sure if I'm supposed to edit that? Thank you to anyone who know what I'm talking about.

This topic has been closed for replies.

2 replies

try67
Community Expert
Community Expert
June 9, 2019

This code will import an FDF file that has the same name as the PDF (and is located in the same folder).

From your description it seems that you want to import a single FDF file into all PDFs. In that case you will need to specify its path, like this:

this.importAnFDF({cPath: "/c/temp/data.fdf"});

Notice the special file path syntax. You have to use the same in your actual code.

Bernd Alheit
Community Expert
Community Expert
June 9, 2019

What happens when you try it?