{
  "data": null,
  "kind": "anchor.page",
  "links": {
    "api": "https://www.anchorterminal.com/api/v1/index.json",
    "html": "https://www.anchorterminal.com/niches/pdf-tools.html-to-pdf/",
    "json": "https://www.anchorterminal.com/niches/pdf-tools.html-to-pdf/index.json",
    "llms": "https://www.anchorterminal.com/llms.txt",
    "markdown": "https://www.anchorterminal.com/niches/pdf-tools.html-to-pdf/index.md",
    "mcp": "https://www.anchorterminal.com/mcp",
    "slim": "https://www.anchorterminal.com/niches/pdf-tools.html-to-pdf/index.min.md"
  },
  "markdown": "One company's docs show a full fit.\n\n| Companies, full fit | With a limit | Carry the tag | Share of the category's work | First-hand accounts |\n| --- | --- | --- | --- | --- |\n| 1 | 9 | 22 | 29 | 9 |\n\n## What counts as done\n\nOne 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.\n\nMeasured, for our own tests: a 10-page report renders in under 30 seconds.\n\nHow 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\n\n## Does the job\n\nThe docs show it meets the test above, and nothing we read says otherwise.\n\n- **DocRaptor (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.\n\n## Does the job, with a limit\n\nIt 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.\n\n- **CloudConvert API (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.\n- **ConvertAPI (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.\n- **Foxit PDF Services API (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.\n- **iLoveAPI (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.\n- **Nutrient DWS Processor API (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.\n- **PDF.co API + MCP (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.\n- **PDFMonkey (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.\n- **pdfRest API Toolkit (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.\n- **PrintFriendly MCP server (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.\n\n## What stops agents finishing\n\n- renderer drops print CSS, so headers, footers and page breaks come out wrong (acc-06, acc-25)\n- external images or fonts not fetched (acc-24)\n- free or test output watermarked\n- synchronous call times out on large documents (acc-25)\n\n## Around it\n\nBefore: llm.draft-report, web-scrapers.page-to-markdown. After: email.agent-tool-send, file-storage.share-temp-link, e-signatures.generate-and-send.\n\n## Where this comes from\n\nWeight 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\n\nAs data: https://www.anchorterminal.com/api/v1/use-cases/pdf-tools.html-to-pdf.json, or the MCP tool get_use_case with id pdf-tools.html-to-pdf. Draft, read 2026-11-15 from public docs and first-hand accounts, not yet reviewed by a person.\n",
  "meta": {
    "attribution": "Anchor Terminal (https://www.anchorterminal.com)",
    "attributionRequired": true,
    "credit": "CC BY 4.0, credit Anchor Terminal and link the page or API address you took it from (https://www.anchorterminal.com/terms/#data)",
    "docs": "https://www.anchorterminal.com/docs/",
    "generatedAt": "2026-11-16",
    "license": "CC-BY-4.0",
    "method": "https://www.anchorterminal.com/benchmark/",
    "methodology": "0.8",
    "openapi": "https://www.anchorterminal.com/openapi.json",
    "preview": false,
    "run": "2026-10-01",
    "runLabel": "October 2026 research run",
    "terms": "https://www.anchorterminal.com/terms/#data"
  },
  "page": {
    "breadcrumbs": [
      {
        "name": "Home",
        "url": "https://www.anchorterminal.com/"
      },
      {
        "name": "For agents",
        "url": "https://www.anchorterminal.com/agents/"
      },
      {
        "name": "Niches",
        "url": "https://www.anchorterminal.com/niches/"
      },
      {
        "name": "Render HTML, Markdown or a web page as a PDF",
        "url": ""
      }
    ],
    "description": "Render HTML, Markdown or a web page as a PDF: 1 companies fully do it, 9 with a limit, 22 carry the tag. Every listing in PDF tools with the reason and a source.",
    "facts": null,
    "h1": "Render HTML, Markdown or a web page as a PDF",
    "image": "https://www.anchorterminal.com/assets/og/default.png",
    "path": "/niches/pdf-tools.html-to-pdf/",
    "published": "",
    "section": "agents",
    "title": "Render HTML, Markdown or a web page as a PDF | Anchor Terminal",
    "toc": null,
    "updated": "2026-11-15",
    "url": "https://www.anchorterminal.com/niches/pdf-tools.html-to-pdf/"
  },
  "tokens": {
    "markdown": 1450,
    "slim": 330
  },
  "version": 1
}
