How to export document as FDF, then import said file back into document?
Good evening, I am trying to create a program which will export the PDF document as a FDF file, add pages, then import the FDF file back into itself.
Here is my code, as a javascript action in adobe:
var Pgx = ("G:\Team Drives\GENETICS\LOGISTICS\REC FORMS\REC FORM SHORTCUT\1-LS PGX REC FORM.pdf");
var Cgx = ("G:\Team Drives\GENETICS\LOGISTICS\REC FORMS\REC FORM SHORTCUT\2-MHS CGX REC FORM.pdf");
var File = (this.documentFileName.replace(/.pdf/,""));
this.exportAsFDF({cPath: File(".fdf")});
this.insertPages({cPath: Pgx});
this.insertPages({cPath: Cgx});
this.importAnFDF({cPath: File(".fdf")});
I have tried looking up for what I could find on the forums, and internet, but it seems that my program does not want to add pages, OR export/import FDf files. Any help would be appreciated! I apologize for my lack of coding skill with Java/Javascript.
