Convert HTML to PDF
Proooxy
Turn an HTML string into a PDF. Paste your markup, such as an invoice, report or certificate, and get a downloadable PDF back. Set the paper size and a base URL for relative links and images, and add a watermark or password. Call it from the API to generate documents from your own templates.
Input
Output fields
Sign up on Apify or log in
The HTML to PDF & URL to PDF API - Website Screenshots Actor is ready to run with the inputs already set for "Convert HTML to PDF". Sign up or log in and you'll land in Apify Console with a copy of this exact task.
Start the "Convert HTML to PDF" task
The HTML to PDF & URL to PDF API - Website Screenshots Actor will start running based on the input automatically. You can also change all the input fields, like source type, HTML Content, and more, to match your specific use case.
Receive the "Convert HTML to PDF" output
Monitor the progress in real time. You will be notified as soon as your dataset is complete and ready for review. Each result includes data such as URL, format, mode, and more.
Integrate into your workflow
The final output is delivered in JSON, CSV, or Excel format, ready to be plugged into your workflow. You can also run the "Convert HTML to PDF" task via API.

Yes, as long as they are reachable by URL. Set the base URL so relative links in your HTML resolve.
Yes. Set the output format to PNG, JPEG or WebP.
Call the Actor through the Apify API with your HTML in the input, then fetch the file from the download link in the result.
Each result has a download link. The files are also in the run’s key-value store, and you can fetch them through the Apify API.
You pay per page rendered, plus a small extra for options such as watermarks, passwords or merging. Pages that fail to render are not charged. See the Pricing tab for current rates.