Merging my pdf form with a pdf from a Url

New Here ,
Apr 20, 2021 Apr 20, 2021

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

 

 

TOPICS
Create PDFs, Edit and convert PDFs, JavaScript, PDF forms

Views

165

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Most Valuable Participant ,
Apr 20, 2021 Apr 20, 2021

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.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Apr 20, 2021 Apr 20, 2021

Copy link to clipboard

Copied

Ok, and considering we forget about the Login requirements , is the rest possible?

 

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Most Valuable Participant ,
Apr 21, 2021 Apr 21, 2021

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.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Apr 21, 2021 Apr 21, 2021

Copy link to clipboard

Copied

Easy enough , Thanks

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Most Valuable Participant ,
Apr 21, 2021 Apr 21, 2021

Copy link to clipboard

Copied

LATEST

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.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines