Skip to main content
Participant
May 21, 2021
Question

Generate PDF from URL

  • May 21, 2021
  • 2 replies
  • 379 views

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.

This topic has been closed for replies.

2 replies

Ben V
Adobe Employee
Adobe Employee
May 25, 2021

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.

Joel Geraci
Community Expert
Community Expert
May 24, 2021

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.