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.
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.
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.