Paged PDFs
A4, Letter, Legal, A3 or A5 with margins, a separate first-page margin and your print CSS.
Resumes, invoices, reports and contracts.
Send HTML or a URL, get a PDF that reads well. pdfember keeps headings with their text, does not cut entries in half, repeats sidebars on every page, or prints one long page that looks exactly like your web preview.
Free: 1,000 PDFs a month, no card.
# A resume as two clean A4 pages curl https://pdfember.com/api/v1/pdf \ -H "Authorization: Bearer $PDFEMBER_KEY" \ -H "Content-Type: application/json" \ -d '{ "html": "<html>…your resume…</html>", "layout": "pages", "page": { "size": "A4", "margin": { "top": 12, "bottom": 12 } } }' \ -o resume.pdf
// Laravel $pdf = Http::withToken($key) ->post('https://pdfember.com/api/v1/pdf', [ 'html' => view('cv', $data)->render(), 'layout' => 'single-page', ]) ->throw() ->body(); // X-Pdfember-Pages: 1 // X-Pdfember-Documents-Left: 999
The run
38 KB of HTML, options checked before rendering starts.
Fonts and images waited for. Private addresses refused.
41 blocks kept together, 9 titles kept with their text.
2 A4 pages. Sidebar repainted on page 2.
The PDF in the response body. 1 document from your plan.
Smart page breaks
The same resume, printed twice. Left: a plain print, which ends page 1 on an entry title and a single bullet, then starts page 2 on the paper's edge. Right: pdfember moves the entry whole and gives page 2 its padding back.
What it does
A4, Letter, Legal, A3 or A5 with margins, a separate first-page margin and your print CSS.
Resumes, invoices, reports and contracts.
One page as tall as the document, at the width you choose. Reads exactly like the web preview.
Resumes sent by email, portfolios, receipts.
Post raw HTML up to 5 MB or a public URL. Fonts and images are waited for before printing.
Server-rendered views and SPAs.
Add CSS on top of the page, or steer breaks with data attributes when a heuristic is not enough.
Templates you cannot edit.
One HTTP call from any stack, with Laravel examples in the docs. Nothing to install on your app server.
Laravel, Symfony, Node and Python apps.
Merge, split, rotate, crop, watermark and number the PDFs you already have, in the browser or with one API call.
Contracts, scans, reports and invoices.
Who it is for
The paged and the one-page version of the same template, both readable.
Invoices, statements and reports from the views you already render.
Nothing to install on the app server: your app stays small and stateless.
Turn generated HTML into a PDF with one tool call.
How it works
POST /api/v1/pdf with html or url and a layout.
pdfember lays the page out and marks the safe breaks.
The PDF comes back in the response, with page count headers.
// Request options { "html": "<html>…</html>", "layout": "pages", // or "single-page" "page": { "size": "A4", "margin": 10 }, "media": "print", "smartBreaks": true, "waitForSelector": "#ready" }
// 422 Unprocessable Content { "error": { "code": "invalid_request", "message": "Unknown option \"pagesize\"." } }
Pricing
1 credit a document. Failed renders are free.
A document is one PDF you get back, however many pages it has: a one-page receipt and a 40-page report cost the same. A merge, split or watermark run is one document too. Example: a resume as a paged PDF plus its digital version is 2 credits.
Business
$79 / month
200,000 PDFs
25 renders at once
600 requests/min
Every plan includes every feature: smart page breaks, one-page PDFs, all 19 PDF tools and the playground. No hourly caps.
Before printing, pdfember measures the laid-out page and marks blocks that should not be split: short blocks stay whole, titles stay with the text after them, long lists keep at least two items on each side of a break, and tall padded columns keep their padding on every page. Your HTML is not rewritten; only break properties are added.
Yes. Every render runs in a fresh, isolated context: no cookies, storage or cache are shared between documents.
No. Pages may load public http(s) resources only; private, loopback and link-local addresses are refused.
No. HTML and PDFs live only for the request. pdfember records the page count, size and duration for your usage.
Yes: 1,000 PDFs a month, two renders at a time, no card. Every feature is included.
No. A document is one PDF you get back, however many pages it has, and a merge, split or watermark run is one document too. Failed renders are free.