Render HTML, Markdown or a web page as a PDF
One company's docs show a full fit.
What counts as done
One call or one job returns a PDF that opens in common readers, with print CSS honoured: page breaks, repeated headers and footers with readable page numbers, table rows not split, external images and web fonts loaded, non-Latin scripts shown, and JavaScript run when asked. The docs say how long the output link lasts.
Measured, for our own tests: a 10-page report renders in under 30 seconds. No docs we read state these figures, so they don't count against a listing here.
How agents ask for it: turn this into a PDF
, make a PDF report of this
, save this page as PDF
, export the invoice HTML to PDF
Does the job 1
The docs show it meets the test above, and nothing we read says otherwise.
| Listing | Why |
|---|---|
| DocRaptor C DocRaptor, LLC | Prince renders @page margin boxes with counter(page) and counter(pages), break-before, break-after and break-inside, @font-face web fonts and JavaScript with docraptorJavaScriptFinished(); async jobs run 10 minutes with a callback, synchronous ones 60 seconds, and hosted documents expire after a day. source |
Does the job, with a limit 9
It does the job, but something in the docs or a user's account will get in an agent's way. The limit is named in each row.
| Listing | Why |
|---|---|
| CloudConvert API B Lunaweb GmbH | HTML to PDF runs on a Chrome engine with page size, margins, header_template and footer_template, css_media_type, print_background, wait_for_element and wait_time; output links last 24 hours. Font and non-Latin handling aren't documented, and acc-22 saw fast jobs miss their event and one Bad Gateway in 200. source |
| ConvertAPI B ConvertAPI, UAB | html/to/pdf takes Header and Footer HTML with pageNumber and totalPages classes, AvoidBreakElements, BreakBefore and BreakAfter selectors, CssMediaType, JavaScript, WaitElement and LoadLazyContent; StoreFile links last 3 hours. Web font and non-Latin handling aren't documented. source |
| Foxit PDF Services API F Foxit Software Incorporated | pdf-from-html takes page width and height, rotation, pageMode and scalingMode, supports embedded CSS, images and web fonts up to 100 MB, and runs as an async task. No header, footer or page-number option and no JavaScript wait signal appear in the schema. source |
| iLoveAPI D iLovePDF S.L. | htmlpdf loads the page in headless Chromium with screen media, defaults to one long page, and has page size, orientation, a pixel margin and a delay. Print CSS isn't used and there are no headers or footers; page numbers need a second, connected pagenumber task. source |
| Nutrient DWS Processor API BB PSPDFKit GmbH | Build takes an HTMLPart with uploaded CSS, fonts and images and a layout (size, margins, orientation); #pspdfkit-header and #pspdfkit-footer repeat on every page with {{ pageNumber }}; async jobs report expires_at. Assets must sit flat beside the HTML, JavaScript isn't covered, and free-plan output is watermarked. source |
| PDF.co API + MCP E Artifex Software, Inc. | convert/from/html takes HTML with header and footer HTML on every page, margins, paper size, mediatype, printbackground, a render timeout and a custom script, runs JavaScript always, can run async with a callback, and sets link expiry in minutes. Font and non-Latin handling aren't documented. source |
| PDFMonkey C PDFMonkey | Agent-written HTML and CSS must first become a code template (CLI or MCP), then a document; page size, margins, page breaks and headers and footers with page numbers are documented. Free plans block external images, fonts and JavaScript, and download URLs expire after an hour. source |
| pdfRest API Toolkit C Datalogics, Inc. | POST /pdf takes an .html file or a URL and Markdown through a structured-text converter with page setup, fonts including a CJK font, and repeated table headers. No HTML header, footer, page-number, JavaScript or print-media option is documented for HTML input. source |
| PrintFriendly MCP server C Print Friendly LLC | create_document turns a URL, HTML or Markdown into a PDF or DOCX in one call, with a link that lasts 48 hours. The only layout options are title and page_size; print CSS, headers, footers, page numbers, fonts and JavaScript aren't documented. source |
What stops agents finishing
- renderer drops print CSS, so headers, footers and page breaks come out wrong (acc-06, acc-25)
- external images or fonts not fetched (acc-24)
- free or test output watermarked
- synchronous call times out on large documents (acc-25)
Around it
Before: llm.draft-report, web-scrapers.page-to-markdown. After: email.agent-tool-send, file-storage.share-temp-link, e-signatures.generate-and-send.
Where this comes from
Weight 29 of 100 in PDF tools: 9 of 31 use-case memberships across 31 counted accounts (acc-01, 02, 04, 06, 07, 08, 09, 24, 28); the largest thread read (Ask HN on HTML to PDF) and two n8n threads
The same as data: /api/v1/use-cases/pdf-tools.html-to-pdf.json, or the MCP tool get_use_case with id pdf-tools.html-to-pdf. Other jobs in this category: /api/v1/niches?category=pdf-tools.
For companies
Do agents find, use and choose your tools?
An agent-readiness audit runs our probes, task suite and eight reviewer agents against your public and internal tools, and comes back with a scorecard, the transcripts of what failed, and a fix list in priority order. From $2,500, re-run included. We never take payment to move a rank. We do help companies earn one.