Faster and easier import (*csv) into the PDF form

Forum for the PDF-XChange Editor - Free and Licensed Versions

Moderators: TrackerSupp-Daniel, Tracker Support, Vasyl-Tracker Dev Team, Sean - Tracker, Paul - Tracker Supp, Chris - Tracker Supp, Tracker Supp-Stefan, Ivan - Tracker Software

Post Reply
User avatar
siSINka
User
Posts: 40
Joined: Sun Apr 07, 2019 11:55 am
Location: Czech Republic

Faster and easier import (*csv) into the PDF form

Post by siSINka » Sun Apr 28, 2019 8:57 am

I have a form "test.pdf" and required data in the file "test.csv" in the same directory.
In the form i have "import button"
button.png
When I click the button, I have to choose file "test.cst" to load the data.

Is there any way to choose (known) file automatically, without the "Open Files" dialog?
I think(??) "Run a Java Script" should be used instead of "Execute a Command" in Actions - Mouse Down.

Thanks for help.

User avatar
Will - Tracker Supp
Site Admin
Posts: 6826
Joined: Mon Oct 15, 2012 9:21 pm
Location: London, UK
Contact:

Re: Faster and easier import (*csv) into the PDF form

Post by Will - Tracker Supp » Mon Apr 29, 2019 10:12 am

Hi siSINka,

Thanks for the post - I'm afraid that there is currently no method defined specifically to import form data from a CSV. I would recommend that you use FDF (Form Data File) or XFDF (XML Form Data File) as these are designed specifically to work with form data and annotation data. You can then use the importAnFDF() method defined in the Adobe JavaScript API Reference:
https://www.adobe.com/content/dam/acom/ ... erence.pdf

HTH!
If posting files to this forum, you must archive the files to a ZIP, RAR or 7z file or they will not be uploaded.
Thank you.

Best regards

Will Travaglini
Tracker Support (Europe)
Tracker Software Products Ltd.
http://www.tracker-software.com

Post Reply