Copy link to clipboard
Copied
Hi
Imtrying to create a PDF form for someone to use as a proof of residence, on the first page is the form where the persons details are filled in that I managed fine.
Here's the tricky part:
Im looking for a JavaScript that will import a PDF document (the utilities account) from a url that requires login details, and then merge that pdf with page 1 of my form
Thanks
Copy link to clipboard
Copied
That's not possible. A script can't log in to a site for you, unless it's possible to enter the username and password into the URL itself.
Copy link to clipboard
Copied
Ok, and considering we forget about the Login requirements , is the rest possible?
Copy link to clipboard
Copied
Yes, assuming it will only be used in Acrobat.
To do it you can use the following code:
this.getURL("http://myurl.com", true);
It will convert the contents of the URL in the first parameter to a PDF and then append it to the end of the current document.
Copy link to clipboard
Copied
Easy enough , Thanks
Copy link to clipboard
Copied
Just to repeat and emphasise: "assuming it will only be used in Acrobat." means "so everyone who uses the form must be paying for Acrobat". The free Reader will NOT work.