Generate PDF from URL

New Here ,
May 21, 2021 May 21, 2021

Copy link to clipboard

Copied

Is there a way to programatically generate a PDF from a URL? The page referenced by the URL is an Angular application, so it would need to wait until the page is ready before convertion starts.

TOPICS
Document Generation API, How to, PDF Embed API, PDF Services API

Views

42

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
Adobe Community Professional ,
May 24, 2021 May 24, 2021

Copy link to clipboard

Copied

No. The current implementation of the Create from HTML service does not support creating from a URL. The HTML and associated files must be in a ZIP container when submitted.

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
Adobe Employee ,
May 25, 2021 May 25, 2021

Copy link to clipboard

Copied

LATEST

Hi @Dave5EDE,

It is on our roadmap, but I can't give a firm timeline to you right now. As @Joel_Geraci mentioned, there isn't right now a create PDF from URL. However, there are also a couple way that I might consider approaching it based on existing functionality:

 

Create a function on server-side

Create a server-side function or endpoint which does a GET request to scrape that page, ZIP it and pass it to the API to generate the PDF.

 

Use Dynamic HTML API

While we don't have a create PDF from URL yet, we do have the concept of a package ZIP which could be your output template and you pass with it a JSON file with the contents you want to populate into the file. In the HTML in the ZIP you are basically outputting the JSON values into the spots in the HTML. I have used that to basically pass the HTML contents in the JSON.

 

Hope that helps.

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