Actor picture

PDF Generator


A fork of Jancurn's url-to-pdf act with added name input & and delay until network is idle. Opens a web page in headless Chrome using Puppeteer and prints it to PDF. The input is a JSON object such as: { "url": "", "pdfOptions": { "format": "a4", "printBackground": true }, "name": "Wiki.pdf" } The "pdfOptions" object is passed to Puppeteer's page.pdf() function - see Output is a PDF file.

To run the actor, you'll need an Apify account. Simply create a new task for the actor by clicking the green button above, modify the actor input configuration, click Run and get your results.


To run the actor from your code, send a HTTP POST request to the following API endpoint:<YOUR_API_TOKEN>

The POST payload including its Content-Type header is passed as INPUT to the actor (usually application/json). The actor is started with the default options; you can override them using various URL query parameters.

To use the API, you'll need to replace <YOUR_API_TOKEN> with the API token of your Apify account (view here).

For more information, view the list of actor's API endpoints or the full API reference.

  • Modified
  • Last run
  • Used3149 times
  • Used by21 users