HTML to PDF - Chromium Render (no file retention) avatar

HTML to PDF - Chromium Render (no file retention)

Pricing

$150.00 / 1,000 results

Go to Apify Store
HTML to PDF - Chromium Render (no file retention)

HTML to PDF - Chromium Render (no file retention)

Render HTML to PDF with a real Chromium print engine - modern CSS, web fonts and SVG come out as a browser prints them. Paste HTML inline (invoices, reports) or pass a file URL. Privacy-first: inputs deleted at conversion end, outputs within an hour, failed runs never charge.

Pricing

$150.00 / 1,000 results

Rating

0.0

(0)

Developer

Nir Diamant

Nir Diamant

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

18 days ago

Last modified

Share

Render HTML to PDF with a real Chromium print engine, so modern CSS, web fonts, flexbox/grid layouts, and inline SVG come out the way a browser prints them - not the way a word processor guesses them. Paste HTML straight into the input (the generated-invoice case: no hosting step, no temp bucket) or point it at an .html file URL.

Why this converter

  • Chromium, not a converter library. The render path is a headless Chromium print, the same engine your users' browsers use. CSS that renders in Chrome renders here.
  • Inline HTML input. Most HTML-to-PDF jobs start from generated markup (invoices, reports, tickets). Paste it directly as the html input; no need to host the file anywhere first.
  • No file retention. The input is deleted the moment the conversion finishes. The output is kept for about an hour, then deleted. Your documents are not stored, mined, or used for anything.
  • Failed runs never charge. One dataset item per successful conversion; a failure produces no item and no charge.

How do I convert HTML to PDF on Apify?

  1. Press Start with the prefilled sample, or paste your own HTML into the html field (or a direct .html file URL into fileUrl).
  2. Wait for the run to finish; a typical render takes 10 to 20 seconds.
  3. Download the PDF from the run's Storage tab (the OUTPUT record), or follow the outputUrl in the dataset row.

Input

Either of:

{ "html": "<!doctype html><html><body><h1>Invoice #1042</h1>...</body></html>" }
{ "fileUrl": "https://example.com/report.html" }
  • html (string): the HTML to render, passed inline.
  • fileUrl (string): direct http(s) URL of an .html file, up to 50 MB.
  • fileName (optional): base name for the output file.
  • maxWaitSeconds (optional): how long to wait before failing, default 300.

Output

  • The PDF is stored as the OUTPUT record of the run's key-value store (the dataset row carries its direct outputUrl).
  • One dataset row per successful conversion: pair, fileName, outputFileName, inputBytes, outputBytes, durationSeconds, outputUrl.

How much does it cost?

$0.15 per successful render, platform usage included - the price you see is the whole price. A failed run produces no dataset item and no charge. A free Apify account is enough to use it; renders bill against your Apify usage balance.

Run it from code

JavaScript (apify-client) - the generated-invoice flow:

import { ApifyClient } from 'apify-client';
const client = new ApifyClient({ token: 'YOUR_APIFY_TOKEN' });
const run = await client.actor('hushvert/html-to-pdf').call({
html: `<!doctype html><html><body><h1>Invoice #1042</h1></body></html>`,
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items[0].outputUrl); // direct PDF download link, valid ~1 hour

Python (apify-client):

from apify_client import ApifyClient
client = ApifyClient('YOUR_APIFY_TOKEN')
run = client.actor('hushvert/html-to-pdf').call(
run_input={'html': '<!doctype html><html><body><h1>Invoice #1042</h1></body></html>'})
items = client.dataset(run['defaultDatasetId']).list_items().items
print(items[0]['outputUrl'])

Plain HTTP (one call, returns the dataset row):

curl -X POST \
'https://api.apify.com/v2/acts/hushvert~html-to-pdf/run-sync-get-dataset-items?token=YOUR_APIFY_TOKEN' \
-H 'content-type: application/json' \
-d '{"html": "<!doctype html><html><body><h1>Invoice #1042</h1></body></html>"}'

Can I use it from n8n, Make, Zapier, or LangChain?

Yes. Like any Apify actor, it plugs into n8n, Make, Zapier, and LangChain through Apify's official integrations; select the actor by name, hushvert/html-to-pdf. A workflow that fills an HTML template and needs a PDF at the end (invoices, confirmations, reports) maps to exactly this actor. AI agents can also call it as a tool through Apify's MCP server.

Is it private?

  • The conversion runs on hushvert's server lane (Gotenberg's Chromium route), not inside this actor. Retention: inputs deleted at conversion end, outputs auto-deleted after about an hour.
  • Your documents are never stored beyond that window, never mined, and never used to train anything.

FAQ

Why does my page render differently than expected?

Self-contained HTML (styles and images inlined, e.g. data: URIs) is the reliable input: it renders identically every time. External assets referenced by URL may or may not be reachable from the sandboxed render engine; do not depend on them.

Does it support modern CSS?

Yes: it is a real headless Chromium print. Flexbox, grid, web fonts, and inline SVG render as Chrome prints them. Print CSS (@page, @media print) applies.

What is the size limit?

50 MB per input file (inline HTML is effectively unlimited for practical invoice/report sizes).

What happens when a render fails?

The run fails with the real error message, produces no dataset item, and charges nothing.

More private converters from hushvert

  • Office to PDF: Word, Excel, PowerPoint, OpenDocument, RTF, HTML in; PDF out. One actor, eleven formats.
  • DOCX to PDF: Word to PDF.
  • PDF to DOCX: PDF back to editable Word, real text and tables, correct Hebrew/Arabic reading order.
  • PDF to Markdown: clean Markdown for LLM context windows and RAG ingestion.
  • Document to Markdown: eight document formats to Markdown, inline in the dataset.
  • Video to MP4: MOV, MKV, WEBM, AVI, GIF to universal MP4, files up to 500 MB.

Who is behind this actor?

Built by the hushvert founder. The browser-side conversion engine is MIT open source (@hushvert/engine on npm); formats a browser can convert (images, HEIC, audio, archives, PDF page ops) are free and client-side at https://hushvert.com and are deliberately not sold here. Developer API docs: https://hushvert.com/for-developers