Accessing online file

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

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

Post Reply
rilihe
User
Posts: 1
Joined: Thu Oct 21, 2021 2:12 pm

Accessing online file

Post by rilihe »

Hi,

I created a new PDF document with fillable fields. For a sequential invoice number, I want to access a number that is stored in a file online (can be .txt, .json...) so that it can be accessed by multiple devices and a number never appears twice.

How can I implement this in the PDF in JavaScript? Or do you know better alternative solutions?

Thanks in advance.
User avatar
Ivan - Tracker Software
Site Admin
Posts: 3549
Joined: Thu Jul 08, 2004 10:36 pm
Location: Vancouver Island - Canada
Contact:

Re: Accessing online file

Post by Ivan - Tracker Software »

You can create a web service that will return that number and access this service using Net.HTTP.request
Tracker Software (Project Director)

When attaching files to any message - please ensure they are archived and posted as a .ZIP, .RAR or .7z format - or they will not be posted - thanks.
Dubstep
User
Posts: 3
Joined: Wed Aug 18, 2021 11:58 am

Re: Accessing online file

Post by Dubstep »

Hi Ivan,

how can I implement this request in JavaScript? Are there any examples on how to do this?

Greetings!
User avatar
Tracker Supp-Stefan
Site Admin
Posts: 17765
Joined: Mon Jan 12, 2009 8:07 am
Location: London
Contact:

Re: Accessing online file

Post by Tracker Supp-Stefan »

Hello Dubstep,

You will find further instructions in the JS API reference file - I linked it in your other topic:
viewtopic.php?t=38912

Kind regards,
Stefan
Post Reply