{"id":771,"date":"2026-12-02T18:59:58","date_gmt":"2026-12-02T17:59:58","guid":{"rendered":"https:\/\/theitlead.com\/blog\/?p=771"},"modified":"2026-12-03T00:02:20","modified_gmt":"2026-12-02T23:02:20","slug":"pdf-libraries-and-apis","status":"publish","type":"post","link":"https:\/\/theitlead.com\/blog\/pdf-libraries-and-apis\/","title":{"rendered":"Best PDF Libraries and APIs: 12 Tools for Generating, Converting and Viewing PDFs"},"content":{"rendered":"\n<div class=\"ok-byline\"><div class=\"ok-who\"><span class=\"ok-avatar\" aria-hidden=\"true\">MB<\/span><div><strong>Reviewed by Max Benz<\/strong><span>Updated <time datetime=\"2026-12-01\">December 1, 2026<\/time> \u00b7 28 min read<\/span><\/div><\/div><ul class=ok-chips><li class=\"ok-chip ok-chip--ok\">Prices checked on December 1, 2026<\/li><li class=\"ok-chip ok-chip--ok\">12 PDF libraries and APIs compared<\/li><li class=\"ok-chip ok-chip--ok\">Licenses and versions from each project's repository<\/li><\/ul><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">PDF libraries and APIs turn your application's data into PDF files, or open, edit, fill, sign and render PDFs that already exist. This comparison covers twelve of them, from free open-source libraries you import into your code to commercial SDKs and hosted APIs that bill per document, and it follows one job through every entry: a two-page invoice generated from order data, about 5,000 times a month.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The tools work in three different ways. A library runs inside your own process, a self-hosted service runs next to your application in a container, and a hosted API receives your HTML or JSON and sends a PDF back. That choice matters more than the feature list, though: who patches the renderer, where customer data travels, and whether you pay per document, per developer or not at all.<\/p>\n\n\n\n<nav class=\"ok-toc\" aria-label=\"On this page\"><p class=\"ok-toc__h\">On this page<\/p><ol><li><a href=\"#our-picks-and-the-comparison-table\">Our picks and the comparison table<\/a><\/li><li><a href=\"#what-are-pdf-libraries-and-apis\">What are PDF libraries and APIs?<\/a><\/li><li><a href=\"#how-we-chose-these-tools\">How we chose these tools<\/a><\/li><li><a href=\"#pdf-sdks-for-creating-and-editing-documents\">PDF SDKs for creating and editing documents<\/a><\/li><li><a href=\"#headless-browsers-and-self-hosted-renderers\">Headless browsers and self-hosted renderers<\/a><\/li><li><a href=\"#hosted-pdf-apis\">Hosted PDF APIs<\/a><\/li><li><a href=\"#open-source-libraries-for-one-job\">Open-source libraries for one job<\/a><\/li><li><a href=\"#what-pdf-libraries-and-apis-cost\">What PDF libraries and APIs cost<\/a><\/li><li><a href=\"#choosing-by-job\">Choosing by job<\/a><\/li><li><a href=\"#rolling-out-a-pdf-service\">Rolling out a PDF service<\/a><\/li><li><a href=\"#security-notes-for-pdf-rendering\">Security notes for PDF rendering<\/a><\/li><\/ol><\/nav>\n\n\n\n<dl class=\"ok-stats ok-wide\"><div class=\"ok-stat\"><dt>PDF libraries and APIs compared<\/dt><dd>12<\/dd><\/div><div class=\"ok-stat\"><dt>are free open-source projects: Puppeteer, Gotenberg, WeasyPrint and PDF.js, plus the Community license of QuestPDF and the AGPL edition of iText<\/dt><dd>6<\/dd><\/div><div class=\"ok-stat\"><dt>lowest paid monthly plan here (PDFShift Starter and PDF Generator API Creator)<\/dt><dd>$9<\/dd><\/div><div class=\"ok-stat\"><dt>Office formats Gotenberg converts to PDF through LibreOffice<\/dt><dd>100+<\/dd><\/div><\/dl>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"our-picks-and-the-comparison-table\">Our picks and the comparison table<\/h2>\n\n\n\n<ul class=\"ok-picks ok-wide\"><li class=\"ok-pick\"><a href=\"#itext\"><span class=\"ok-fav ok-fav--md\"><img src=\"\/blog\/wp-content\/uploads\/opskit\/fav\/itext.png\" alt=\"\" width=\"24\" height=\"24\" loading=\"lazy\" decoding=\"async\"><\/span><span class=\"ok-pick__tag\">Best PDF library for Java and .NET back ends<\/span><span class=\"ok-pick__name\">iText<\/span><span class=\"ok-pick__text\">Creates, edits, signs and validates PDFs, with PDF\/A-1 to PDF\/A-4, PDF\/UA-2 and an HTML add-on. AGPL or commercial license.<\/span><span class=\"ok-pick__meta\"><span class=\"ok-chip\">AGPL or quote<\/span><\/span><\/a><\/li><li class=\"ok-pick\"><a href=\"#gotenberg\"><span class=\"ok-fav ok-fav--md\"><img src=\"\/blog\/wp-content\/uploads\/opskit\/fav\/gotenberg.png\" alt=\"\" width=\"24\" height=\"24\" loading=\"lazy\" decoding=\"async\"><\/span><span class=\"ok-pick__tag\">Best free self-hosted conversion service<\/span><span class=\"ok-pick__name\">Gotenberg<\/span><span class=\"ok-pick__text\">One Docker container turns HTML, URLs, Markdown and 100+ Office formats into PDF over HTTP, MIT-licensed.<\/span><span class=\"ok-pick__meta\"><span class=\"ok-chip\">Free (MIT)<\/span><\/span><\/a><\/li><li class=\"ok-pick\"><a href=\"#docraptor\"><span class=\"ok-fav ok-fav--md\"><img src=\"\/blog\/wp-content\/uploads\/opskit\/fav\/docraptor.png\" alt=\"\" width=\"24\" height=\"24\" loading=\"lazy\" decoding=\"async\"><\/span><span class=\"ok-pick__tag\">Best hosted API for print-quality HTML<\/span><span class=\"ok-pick__name\">DocRaptor<\/span><span class=\"ok-pick__text\">Prince-based rendering with CSS paged media, SOC 2 and HIPAA, from $15 a month for 125 documents.<\/span><span class=\"ok-pick__meta\"><span class=\"ok-chip\">Free; from $15\/month<\/span><\/span><\/a><\/li><li class=\"ok-pick\"><a href=\"#pdfshift\"><span class=\"ok-fav ok-fav--md\"><img src=\"\/blog\/wp-content\/uploads\/opskit\/fav\/pdfshift.png\" alt=\"\" width=\"24\" height=\"24\" loading=\"lazy\" decoding=\"async\"><\/span><span class=\"ok-pick__tag\">Best low-cost hosted HTML-to-PDF API<\/span><span class=\"ok-pick__name\">PDFShift<\/span><span class=\"ok-pick__text\">Chromium rendering, 500 documents for $9 a month and per-credit overage down to $0.001 at high volume.<\/span><span class=\"ok-pick__meta\"><span class=\"ok-chip\">Free; from $9\/month<\/span><\/span><\/a><\/li><li class=\"ok-pick\"><a href=\"#pdf-generator-api\"><span class=\"ok-fav ok-fav--md\"><img src=\"\/blog\/wp-content\/uploads\/opskit\/fav\/pdf-generator-api.png\" alt=\"\" width=\"24\" height=\"24\" loading=\"lazy\" decoding=\"async\"><\/span><span class=\"ok-pick__tag\">Best for templates your customers edit<\/span><span class=\"ok-pick__name\">PDF Generator API<\/span><span class=\"ok-pick__text\">Drag-and-drop templates filled with JSON over REST, and a white-label editor you embed in your own app. From $9 a month.<\/span><span class=\"ok-pick__meta\"><span class=\"ok-chip\">From $9\/month<\/span><\/span><\/a><\/li><li class=\"ok-pick\"><a href=\"#pdf-js\"><span class=\"ok-fav ok-fav--md\"><img src=\"\/blog\/wp-content\/uploads\/opskit\/fav\/pdf-js.png\" alt=\"\" width=\"24\" height=\"24\" loading=\"lazy\" decoding=\"async\"><\/span><span class=\"ok-pick__tag\">Best free PDF viewer for web apps<\/span><span class=\"ok-pick__name\">PDF.js<\/span><span class=\"ok-pick__text\">Mozilla's Apache-licensed renderer that also powers the PDF viewer in Firefox.<\/span><span class=\"ok-pick__meta\"><span class=\"ok-chip\">Free (Apache-2.0)<\/span><\/span><\/a><\/li><\/ul>\n\n\n\n<div class=\"ok-compare ok-wide\" data-filter=\"1\"><div class=\"ok-scroll\"><table><thead><tr><th scope=\"col\">Tool<\/th><th scope=\"col\">Type<\/th><th scope=\"col\">Runs in<\/th><th scope=\"col\">License<\/th><th scope=\"col\">Starting price (USD)<\/th><\/tr><\/thead><tbody><tr data-cat=\"PDF SDK (Java, .NET)\"><th scope=\"row\"><span class=\"ok-tcell\"><span class=\"ok-fav ok-fav--sm\"><img src=\"\/blog\/wp-content\/uploads\/opskit\/fav\/itext.png\" alt=\"\" width=\"18\" height=\"18\" loading=\"lazy\" decoding=\"async\"><\/span>iText<\/span><\/th><td><span class=\"ok-job\">PDF SDK (Java, .NET)<\/span><\/td><td class=\"ok-muted\">Java, .NET<\/td><td class=\"ok-muted\">AGPLv3 or commercial<\/td><td>Quote for commercial use<\/td><\/tr><tr data-cat=\"PDF SDK (server, web, mobile)\"><th scope=\"row\"><span class=\"ok-tcell\"><span class=\"ok-fav ok-fav--sm\"><img src=\"\/blog\/wp-content\/uploads\/opskit\/fav\/apryse.png\" alt=\"\" width=\"18\" height=\"18\" loading=\"lazy\" decoding=\"async\"><\/span>Apryse<\/span><\/th><td><span class=\"ok-job\">PDF SDK (server, web, mobile)<\/span><\/td><td class=\"ok-muted\">.NET, Java, C++, Node.js, Python, Go, PHP, Ruby<\/td><td class=\"ok-muted\">Commercial<\/td><td>Packages from $1,500<\/td><\/tr><tr data-cat=\"PDF SDK and cloud API\"><th scope=\"row\"><span class=\"ok-tcell\"><span class=\"ok-fav ok-fav--sm\"><img src=\"\/blog\/wp-content\/uploads\/opskit\/fav\/nutrient.png\" alt=\"\" width=\"18\" height=\"18\" loading=\"lazy\" decoding=\"async\"><\/span>Nutrient<\/span><\/th><td><span class=\"ok-job\">PDF SDK and cloud API<\/span><\/td><td class=\"ok-muted\">Any language over REST; self-hosted Docker<\/td><td class=\"ok-muted\">Commercial<\/td><td>Free tier; Starter $75\/month<\/td><\/tr><tr data-cat=\"Open-source headless browser (Node.js)\"><th scope=\"row\"><span class=\"ok-tcell\"><span class=\"ok-fav ok-fav--sm\"><img src=\"\/blog\/wp-content\/uploads\/opskit\/fav\/puppeteer.png\" alt=\"\" width=\"18\" height=\"18\" loading=\"lazy\" decoding=\"async\"><\/span>Puppeteer<\/span><\/th><td><span class=\"ok-job\">Open-source headless browser (Node.js)<\/span><\/td><td class=\"ok-muted\">Node.js<\/td><td class=\"ok-muted\">Apache-2.0<\/td><td>Free<\/td><\/tr><tr data-cat=\"Open-source PDF API (Docker)\"><th scope=\"row\"><span class=\"ok-tcell\"><span class=\"ok-fav ok-fav--sm\"><img src=\"\/blog\/wp-content\/uploads\/opskit\/fav\/gotenberg.png\" alt=\"\" width=\"18\" height=\"18\" loading=\"lazy\" decoding=\"async\"><\/span>Gotenberg<\/span><\/th><td><span class=\"ok-job\">Open-source PDF API (Docker)<\/span><\/td><td class=\"ok-muted\">Any language over HTTP; Docker<\/td><td class=\"ok-muted\">MIT<\/td><td>Free<\/td><\/tr><tr data-cat=\"Open-source HTML-to-PDF library (Python)\"><th scope=\"row\"><span class=\"ok-tcell\"><span class=\"ok-fav ok-fav--sm\"><img src=\"\/blog\/wp-content\/uploads\/opskit\/fav\/weasyprint.png\" alt=\"\" width=\"18\" height=\"18\" loading=\"lazy\" decoding=\"async\"><\/span>WeasyPrint<\/span><\/th><td><span class=\"ok-job\">Open-source HTML-to-PDF library (Python)<\/span><\/td><td class=\"ok-muted\">Python<\/td><td class=\"ok-muted\">BSD-3-Clause<\/td><td>Free<\/td><\/tr><tr data-cat=\"Cloud PDF API\"><th scope=\"row\"><span class=\"ok-tcell\"><span class=\"ok-fav ok-fav--sm\"><img src=\"\/blog\/wp-content\/uploads\/opskit\/fav\/adobe-pdf-services.png\" alt=\"\" width=\"18\" height=\"18\" loading=\"lazy\" decoding=\"async\"><\/span>Adobe PDF Services API<\/span><\/th><td><span class=\"ok-job\">Cloud PDF API<\/span><\/td><td class=\"ok-muted\">Java, .NET, Node.js, Python, REST<\/td><td class=\"ok-muted\">Commercial cloud service<\/td><td>Free tier; then quote<\/td><\/tr><tr data-cat=\"Cloud HTML-to-PDF API\"><th scope=\"row\"><span class=\"ok-tcell\"><span class=\"ok-fav ok-fav--sm\"><img src=\"\/blog\/wp-content\/uploads\/opskit\/fav\/docraptor.png\" alt=\"\" width=\"18\" height=\"18\" loading=\"lazy\" decoding=\"async\"><\/span>DocRaptor<\/span><\/th><td><span class=\"ok-job\">Cloud HTML-to-PDF API<\/span><\/td><td class=\"ok-muted\">Any language over REST<\/td><td class=\"ok-muted\">Commercial cloud service<\/td><td>Free (5 docs); $15\/month<\/td><\/tr><tr data-cat=\"Cloud HTML-to-PDF API\"><th scope=\"row\"><span class=\"ok-tcell\"><span class=\"ok-fav ok-fav--sm\"><img src=\"\/blog\/wp-content\/uploads\/opskit\/fav\/pdfshift.png\" alt=\"\" width=\"18\" height=\"18\" loading=\"lazy\" decoding=\"async\"><\/span>PDFShift<\/span><\/th><td><span class=\"ok-job\">Cloud HTML-to-PDF API<\/span><\/td><td class=\"ok-muted\">Any language over REST<\/td><td class=\"ok-muted\">Commercial cloud service<\/td><td>Free (50 docs); $9\/month<\/td><\/tr><tr data-cat=\"Template-based document generation API\"><th scope=\"row\"><span class=\"ok-tcell\"><span class=\"ok-fav ok-fav--sm\"><img src=\"\/blog\/wp-content\/uploads\/opskit\/fav\/pdf-generator-api.png\" alt=\"\" width=\"18\" height=\"18\" loading=\"lazy\" decoding=\"async\"><\/span>PDF Generator API<\/span><\/th><td><span class=\"ok-job\">Template-based document generation API<\/span><\/td><td class=\"ok-muted\">Any language over REST; no-code connectors<\/td><td class=\"ok-muted\">Commercial cloud service<\/td><td>$9\/month; 14-day free sandbox<\/td><\/tr><tr data-cat=\"Open-source PDF viewer (JavaScript)\"><th scope=\"row\"><span class=\"ok-tcell\"><span class=\"ok-fav ok-fav--sm\"><img src=\"\/blog\/wp-content\/uploads\/opskit\/fav\/pdf-js.png\" alt=\"\" width=\"18\" height=\"18\" loading=\"lazy\" decoding=\"async\"><\/span>PDF.js<\/span><\/th><td><span class=\"ok-job\">Open-source PDF viewer (JavaScript)<\/span><\/td><td class=\"ok-muted\">Browser JavaScript<\/td><td class=\"ok-muted\">Apache-2.0<\/td><td>Free<\/td><\/tr><tr data-cat=\"PDF library (.NET)\"><th scope=\"row\"><span class=\"ok-tcell\"><span class=\"ok-fav ok-fav--sm\"><img src=\"\/blog\/wp-content\/uploads\/opskit\/fav\/questpdf.png\" alt=\"\" width=\"18\" height=\"18\" loading=\"lazy\" decoding=\"async\"><\/span>QuestPDF<\/span><\/th><td><span class=\"ok-job\">PDF library (.NET)<\/span><\/td><td class=\"ok-muted\">.NET (C#)<\/td><td class=\"ok-muted\">Community or commercial<\/td><td>Free under $1M revenue; $1,999<\/td><\/tr><\/tbody><\/table><\/div><p class=\"ok-note\">Prices are list prices in USD from each vendor's site on December 1, 2026. Free means no license fee; you still pay for the servers that run it.<\/p><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">The first table shows how each tool is licensed and where it runs. The second shows which part of the PDF job it covers, because a library that prints HTML can't fill a form and a viewer can't create a document.<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th>Tool<\/th><th>Create from HTML<\/th><th>Create from code or templates<\/th><th>Edit, merge, fill existing PDFs<\/th><th>Render or view<\/th><th>PDF\/A or PDF\/UA<\/th><\/tr><\/thead><tbody><tr><td>iText<\/td><td>Yes, pdfHTML add-on<\/td><td>Yes, layout API in Java and .NET<\/td><td>Yes, forms, merge, signatures<\/td><td>No<\/td><td>PDF\/A-1 to A-4, PDF\/UA-1 and UA-2<\/td><\/tr><tr><td>Apryse<\/td><td>Yes, HTML templates<\/td><td>Yes<\/td><td>Yes, plus OCR and redaction<\/td><td>Yes, WebViewer<\/td><td>PDF\/A; PDF\/UA via Autotagging add-on<\/td><\/tr><tr><td>Nutrient<\/td><td>Yes<\/td><td>Yes, templates and Markdown<\/td><td>Yes, plus OCR and redaction<\/td><td>Yes, viewer API<\/td><td>PDF\/A and PDF\/UA<\/td><\/tr><tr><td>Puppeteer<\/td><td>Yes, headless Chrome<\/td><td>No<\/td><td>No<\/td><td>No<\/td><td>No<\/td><\/tr><tr><td>Gotenberg<\/td><td>Yes, Chromium<\/td><td>No<\/td><td>Merge, split, fill and flatten forms<\/td><td>No<\/td><td>PDF\/A and PDF\/UA<\/td><\/tr><tr><td>WeasyPrint<\/td><td>Yes, own layout engine, no JavaScript<\/td><td>No<\/td><td>No<\/td><td>No<\/td><td>Not listed<\/td><\/tr><tr><td>Adobe PDF Services API<\/td><td>Yes<\/td><td>Yes, Word templates<\/td><td>Combine, OCR, extract<\/td><td>No<\/td><td>Auto-tagging for accessibility<\/td><\/tr><tr><td>DocRaptor<\/td><td>Yes, Prince engine<\/td><td>No<\/td><td>No<\/td><td>No<\/td><td>Accessibility tagging (ISO 14289)<\/td><\/tr><tr><td>PDFShift<\/td><td>Yes, Chromium<\/td><td>No<\/td><td>No<\/td><td>No<\/td><td>Not listed<\/td><\/tr><tr><td>PDF Generator API<\/td><td>Yes, HTML to PDF endpoint<\/td><td>Yes, visual templates plus JSON<\/td><td>Fill forms, watermark, encrypt<\/td><td>Viewer output mode<\/td><td>PDF\/UA tagging<\/td><\/tr><tr><td>PDF.js<\/td><td>No<\/td><td>No<\/td><td>No<\/td><td>Yes, in the browser<\/td><td>No<\/td><\/tr><tr><td>QuestPDF<\/td><td>No<\/td><td>Yes, C# layout API<\/td><td>Not covered here<\/td><td>No<\/td><td>Not covered here<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"what-are-pdf-libraries-and-apis\">What are PDF libraries and APIs?<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">A PDF library is code you add to your own application that writes or reads the PDF file format, for example iText in a Java service or WeasyPrint in a Python app. A PDF API is a service you call over HTTP: you send HTML, a URL, a template ID with JSON data or an existing PDF, and you get a PDF or extracted data back. The work is the same. What's different is where it runs and who maintains the engine.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Most PDF jobs fall into four groups:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><strong>Generate.<\/strong> Turn data into a new document: invoices, reports, tickets, certificates. You either print HTML with a browser engine (Puppeteer, Gotenberg, DocRaptor, PDFShift), lay the page out in code (iText, QuestPDF) or fill a designed template (PDF Generator API, Adobe Document Generation).<\/li><li><strong>Manipulate.<\/strong> Merge, split, stamp, encrypt, fill and flatten forms, or sign documents that already exist. SDKs such as iText and Apryse cover this; browser-based renderers don't.<\/li><li><strong>Extract.<\/strong> Pull text, tables or form values out of PDFs, for example to process supplier invoices. Adobe's Extract API and the OCR features of Apryse and Nutrient handle this.<\/li><li><strong>View.<\/strong> Show a PDF inside a web or mobile app without downloading it. PDF.js does this for free; Apryse WebViewer and Nutrient add annotation, forms and signing.<\/li><\/ul>\n\n\n\n<div class=\"ok-check\"><strong class=\"ok-check__h\">What to check before you pick a PDF tool<\/strong><ul><li>Write down the input: HTML you already have, data plus a template, Office files or existing PDFs<\/li><li>Check whether templates need JavaScript, web fonts or CSS paged media such as running headers and page counters<\/li><li>Decide where customer data may go: your own servers, a vendor cloud, or a vendor region such as the EU<\/li><li>Read the license before you ship: AGPL code in a closed product needs a commercial license<\/li><li>Count documents and pages per month, because hosted APIs bill per document, per credit or per operation<\/li><li>List archive and accessibility requirements such as PDF\/A or PDF\/UA<\/li><li>Name an owner for every API key and renderer container<\/li><\/ul><\/div>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"how-we-chose-these-tools\">How we chose these tools<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">We looked for tools a small development or IT team can adopt this quarter and checked each one against the same invoice job: how a document is described, where rendering happens, what the license or plan counts, and what the tool can't do. We read vendor pricing pages, documentation, license files and release notes and didn't run every product ourselves. Version numbers and release dates come from each project's repository on December 1, 2026.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Large document automation suites and e-signature platforms aren't reviewed here. Several well-known libraries are listed in a short table further down instead of full entries, either because they cover one narrow job or because they are no longer maintained.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"pdf-sdks-for-creating-and-editing-documents\">PDF SDKs for creating and editing documents<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">These SDKs run inside your application or on your own servers and cover the whole document lifecycle: create, edit, fill, sign, convert and validate.<\/p>\n\n\n\n<section class=\"ok-card ok-wide\" aria-labelledby=\"itext\"><header class=\"ok-card__head\"><span class=\"ok-fav ok-fav--md\"><img src=\"\/blog\/wp-content\/uploads\/opskit\/fav\/itext.png\" alt=\"\" width=\"24\" height=\"24\" loading=\"lazy\" decoding=\"async\"><\/span><div class=\"ok-card__title\"><h3 class=\"wp-block-heading\" id=\"itext\">iText<\/h3><p class=\"ok-card__sub\">iText Core is a Java and .NET library for creating and manipulating PDFs, dual-licensed under the AGPLv3 and a commercial license.<\/p><\/div><span class=\"ok-job\">PDF SDK (Java, .NET)<\/span><span class=\"ok-rate ok-muted\">No G2 rating<\/span><\/header><div class=\"ok-card__body\"><div class=\"ok-card__main\"><p class=\"ok-lede\">A Java and .NET library for creating and manipulating PDFs at the object level, with the pdfHTML add-on for HTML and CSS input.<\/p><p><strong>The invoice job.<\/strong> Your service builds the invoice with iText's layout API (paragraphs, tables, images) or writes it as an HTML template and converts it with pdfHTML, all inside the JVM or .NET process. The same library can then apply a PAdES signature, attach the order data for e-invoicing workflows and save the result as PDF\/A for archiving, which matters when invoices have to be kept for years.<\/p><p><strong>Beyond generation.<\/strong> iText fills, extracts and flattens AcroForms and XFDF data, splits and merges documents and gives low-level access to PDF objects when a document needs repairs. Version 9.8.1, released on November 16, 2026, is a security patch: it fixes two ways to bypass signature revision validation and updates the Jackson dependency, so teams that validate signed PDFs on 9.8.0 should upgrade.<\/p><p><strong>The license decision.<\/strong> iText Core is released under the AGPLv3. If your application isn't open source under the same terms, you need a commercial license: an annual subscription priced by the number of PDFs processed, or an OEM license for software you distribute. Neither price is published.<\/p><div class=\"ok-cs\"><div class=\"ok-cs__yes\"><strong class=\"ok-cs__h\">Choose it when<\/strong><ul><li>your back end runs on Java or .NET and has to produce PDF\/A-1 to PDF\/A-4 or PDF\/UA-1 and PDF\/UA-2 output for archives or accessibility<\/li><li>you need PAdES digital signatures and AcroForm fill, extract and flatten in the same library<\/li><li>HTML templates should become PDFs inside the JVM through the pdfHTML add-on, without a browser process<\/li><\/ul><\/div><div class=\"ok-cs__no\"><strong class=\"ok-cs__h\">Skip it when<\/strong><ul><li>you ship closed-source software and can't buy a license: the AGPL requires you to publish your application's full source code<\/li><li>you need a public price before a trial: the subscription is priced by the number of PDFs you process and comes as a quote<\/li><\/ul><\/div><\/div><figure class=\"ok-shot\"><div class=\"ok-shot__bar\" aria-hidden=\"true\"><i><\/i><i><\/i><i><\/i><\/div><img src=\"https:\/\/theitlead.com\/blog\/wp-content\/uploads\/2026\/12\/til-pdf-itext.png\" alt=\"iText Core product page describing the Java and .NET PDF library and its AGPL and commercial licenses\" width=\"1100\" height=\"900\" loading=\"lazy\" decoding=\"async\"><figcaption>iText Core is offered under the AGPL or a commercial license.<\/figcaption><\/figure><\/div><dl class=\"ok-card__side\"><div><dt>Starting price<\/dt><dd>AGPLv3 open source, or a commercial license: annual volume subscription priced by PDFs processed, or OEM; quote only<\/dd><\/div><div><dt>Languages<\/dt><dd>Java, .NET (C#)<\/dd><\/div><div><dt>License<\/dt><dd>AGPLv3 or commercial<\/dd><\/div><div><dt>Latest release<\/dt><dd>9.8.1 (November 16, 2026)<\/dd><\/div><div><dt>Standards<\/dt><dd>PDF\/A-1 to PDF\/A-4, PDF\/UA-1 and PDF\/UA-2, PAdES<\/dd><\/div><\/dl><\/div><\/section>\n\n\n\n<section class=\"ok-card ok-wide\" aria-labelledby=\"apryse\"><header class=\"ok-card__head\"><span class=\"ok-fav ok-fav--md\"><img src=\"\/blog\/wp-content\/uploads\/opskit\/fav\/apryse.png\" alt=\"\" width=\"24\" height=\"24\" loading=\"lazy\" decoding=\"async\"><\/span><div class=\"ok-card__title\"><h3 class=\"wp-block-heading\" id=\"apryse\">Apryse<\/h3><p class=\"ok-card__sub\">Apryse, formerly PDFTron, sells PDF SDKs for servers, browsers and mobile apps: the Server SDK, WebViewer and Mobile SDK, with add-ons for editing, conversion and signatures.<\/p><\/div><span class=\"ok-job\">PDF SDK (server, web, mobile)<\/span><span class=\"ok-rate ok-muted\">No G2 rating<\/span><\/header><div class=\"ok-card__body\"><div class=\"ok-card__main\"><p class=\"ok-lede\">Apryse, formerly PDFTron, sells PDF SDKs for servers, browsers and mobile apps from one document engine.<\/p><p><strong>The invoice job.<\/strong> On the server, the Apryse SDK generates documents from HTML templates, merges attachments, applies digital signatures and converts the result to PDF\/A. If customers later need to review or annotate invoices in your portal, WebViewer renders and annotates PDFs client-side, and its UI is WCAG 2.2 AA compliant.<\/p><p><strong>What else it covers.<\/strong> OCR, redaction and form creation sit in the same SDK, with add-ons for a DOCX editor, a spreadsheet editor, digital signatures, smart data extraction and conversion. PDF\/UA tagging comes through the Autotagging add-on. The Server SDK runs on-premises or in any public or private cloud.<\/p><p><strong>Buying it.<\/strong> Pricing is mostly quote-based; the pricing page states entry-level packages from $1,500. A 40-day evaluation counts active days only, and after it ends the library stops working until a license key is added.<\/p><div class=\"ok-cs\"><div class=\"ok-cs__yes\"><strong class=\"ok-cs__h\">Choose it when<\/strong><ul><li>one vendor should cover server-side conversion, OCR, redaction and PDF\/A as well as a WCAG 2.2 AA browser viewer and editor (WebViewer)<\/li><li>your stack mixes languages: the Server SDK has bindings for .NET, Java, C++, Node.js, Python, Go, PHP and Ruby<\/li><li>the documents must stay on your own servers or private cloud<\/li><\/ul><\/div><div class=\"ok-cs__no\"><strong class=\"ok-cs__h\">Skip it when<\/strong><ul><li>your budget sits below the $1,500 entry-level package<\/li><li>you only need HTML to PDF: the SDK and add-on packaging is sized for full document workflows<\/li><\/ul><\/div><\/div><figure class=\"ok-shot\"><div class=\"ok-shot__bar\" aria-hidden=\"true\"><i><\/i><i><\/i><i><\/i><\/div><img src=\"https:\/\/theitlead.com\/blog\/wp-content\/uploads\/2026\/12\/til-pdf-apryse.png\" alt=\"Apryse WebViewer showcase with a PDF open and annotation tools in the toolbar\" width=\"1440\" height=\"900\" loading=\"lazy\" decoding=\"async\"><figcaption>Apryse WebViewer showcase: view, edit, markup and document generation demos.<\/figcaption><\/figure><\/div><dl class=\"ok-card__side\"><div><dt>Starting price<\/dt><dd>Quote only; entry-level packages from $1,500; 40-day free evaluation<\/dd><\/div><div><dt>Languages<\/dt><dd>.NET, Java, C++, Node.js, Python, Go, PHP, Ruby<\/dd><\/div><div><dt>Deployment<\/dt><dd>On-premises, public or private cloud; WebViewer runs client-side<\/dd><\/div><div><dt>Trial<\/dt><dd>40 active days<\/dd><\/div><\/dl><\/div><\/section>\n\n\n\n<section class=\"ok-card ok-wide\" aria-labelledby=\"nutrient\"><header class=\"ok-card__head\"><span class=\"ok-fav ok-fav--md\"><img src=\"\/blog\/wp-content\/uploads\/opskit\/fav\/nutrient.png\" alt=\"\" width=\"24\" height=\"24\" loading=\"lazy\" decoding=\"async\"><\/span><div class=\"ok-card__title\"><h3 class=\"wp-block-heading\" id=\"nutrient\">Nutrient<\/h3><p class=\"ok-card__sub\">Nutrient, formerly PSPDFKit, offers PDF SDKs and the Document Web Services (DWS) API for generating, converting, OCRing, redacting and signing documents in the cloud or self-hosted.<\/p><\/div><span class=\"ok-job\">PDF SDK and cloud API<\/span><span class=\"ok-rate ok-muted\">No G2 rating<\/span><\/header><div class=\"ok-card__body\"><div class=\"ok-card__main\"><p class=\"ok-lede\">Nutrient, formerly PSPDFKit, sells PDF SDKs and the Document Web Services (DWS) API, priced per operation in the cloud or licensed for self-hosting.<\/p><p><strong>The invoice job.<\/strong> You send HTML, a template or Markdown to the DWS Processor API and get a PDF back; each HTML-to-PDF conversion costs $37.50 per 1,000 operations on pay-as-you-go. At 5,000 invoices a month that's $187.50 of usage. The Starter plan at $75 a month includes $90 of usage, and Growth at $275 includes $345, with a prepaid wallet covering the rest.<\/p><p><strong>Other operations.<\/strong> The same API converts Office files and images, runs OCR at $1.50 per 1,000 pages, redacts, compresses, validates PDF\/A and PDF\/UA and auto-tags documents for accessibility. A Viewer API adds forms, annotations and eSignature in the browser. Rates differ by operation: PDF\/A conversion and redaction cost $75 per 1,000, Office-to-PDF and compression $150, and digital signatures $750.<\/p><p><strong>Running it yourself.<\/strong> Document Engine is the same engine as a Docker-ready server with an annual license, or as a managed cloud for enterprise contracts. Nutrient publishes a SOC 2 Type 2 report and a SOC 3 report.<\/p><div class=\"ok-cs\"><div class=\"ok-cs__yes\"><strong class=\"ok-cs__h\">Choose it when<\/strong><ul><li>you want metered cloud pricing per operation, for example $37.50 per 1,000 HTML-to-PDF or forms operations and $1.50 per 1,000 OCR pages<\/li><li>the same engine should run as a cloud API or self-hosted: Document Engine is Docker-ready with an annual license<\/li><li>your security review asks for a SOC 2 Type 2 report<\/li><\/ul><\/div><div class=\"ok-cs__no\"><strong class=\"ok-cs__h\">Skip it when<\/strong><ul><li>you send mostly Office files or need compression: those operations cost $150 per 1,000, four times the HTML-to-PDF rate<\/li><li>free-tier output has to be clean: it stays watermarked until you add a wallet<\/li><\/ul><\/div><\/div><figure class=\"ok-shot\"><div class=\"ok-shot__bar\" aria-hidden=\"true\"><i><\/i><i><\/i><i><\/i><\/div><img src=\"https:\/\/theitlead.com\/blog\/wp-content\/uploads\/2026\/12\/til-pdf-nutrient.png\" alt=\"Nutrient Web SDK playground with a PDF open in the viewer and the example browser\" width=\"1440\" height=\"600\" loading=\"lazy\" decoding=\"async\"><figcaption>Nutrient Playground: viewer, forms, annotations and signing examples.<\/figcaption><\/figure><\/div><dl class=\"ok-card__side\"><div><dt>Starting price<\/dt><dd>DWS API: Free with $5 of usage a month; Starter $75\/month ($90 usage); Growth $275\/month ($345 usage); pay-as-you-go from $37.50 per 1,000 HTML-to-PDF operations; Enterprise quote<\/dd><\/div><div><dt>Deployment<\/dt><dd>Cloud API, self-hosted Document Engine (Docker), Managed Cloud<\/dd><\/div><div><dt>Free tier<\/dt><dd>$5 of usage per month, no card<\/dd><\/div><div><dt>Compliance<\/dt><dd>SOC 2 Type 2, SOC 3<\/dd><\/div><\/dl><\/div><\/section>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"headless-browsers-and-self-hosted-renderers\">Headless browsers and self-hosted renderers<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">These free tools turn HTML into PDF on infrastructure you run. You don't pay per document, but you do own the servers, the scaling and the security updates of the rendering engine.<\/p>\n\n\n\n<section class=\"ok-card ok-wide\" aria-labelledby=\"puppeteer\"><header class=\"ok-card__head\"><span class=\"ok-fav ok-fav--md\"><img src=\"\/blog\/wp-content\/uploads\/opskit\/fav\/puppeteer.png\" alt=\"\" width=\"24\" height=\"24\" loading=\"lazy\" decoding=\"async\"><\/span><div class=\"ok-card__title\"><h3 class=\"wp-block-heading\" id=\"puppeteer\">Puppeteer<\/h3><p class=\"ok-card__sub\">Puppeteer is Google's Node.js library for controlling Chrome or Firefox; its page.pdf() call renders a page to PDF with the print CSS media type.<\/p><\/div><span class=\"ok-job\">Open-source headless browser (Node.js)<\/span><span class=\"ok-rate ok-muted\">No G2 rating<\/span><\/header><div class=\"ok-card__body\"><div class=\"ok-card__main\"><p class=\"ok-lede\">Google's Node.js library for controlling Chrome or Firefox; page.pdf() prints any page or HTML string to PDF.<\/p><p><strong>The invoice job.<\/strong> You render the invoice as an HTML page with your usual template engine, open it in a headless browser page and call page.pdf() with paper size, margins and header and footer templates. Chrome applies the print CSS media type, so the PDF looks like the browser's print preview; by default it adjusts colors for printing, and the CSS property -webkit-print-color-adjust keeps backgrounds exact. JavaScript charts, web fonts and flexbox layouts render as they do on screen.<\/p><p><strong>Running it in production.<\/strong> The puppeteer package downloads a matching Chrome build, while puppeteer-core skips the download and connects to a browser you already run. Every render opens a browser page in memory, so throughput depends on how many Chrome instances your servers can keep warm. A queue in front of a small pool of browsers keeps memory use predictable.<\/p><p><strong>Playwright works the same way.<\/strong> Microsoft's Playwright offers the same page.pdf() call for Node.js, Python, Java and .NET, which helps if your back end isn't JavaScript. In current Playwright code only the Chromium backend implements PDF output.<\/p><div class=\"ok-cs\"><div class=\"ok-cs__yes\"><strong class=\"ok-cs__h\">Choose it when<\/strong><ul><li>your templates already are web pages with modern CSS, web fonts and JavaScript charts that need a real browser engine<\/li><li>you run Node.js and want PDF output without a per-document fee<\/li><li>you also need screenshots or browser automation from the same dependency<\/li><\/ul><\/div><div class=\"ok-cs__no\"><strong class=\"ok-cs__h\">Skip it when<\/strong><ul><li>you can't host and scale headless Chrome yourself: every render is a browser page in memory<\/li><li>you need to fill forms, merge or sign existing PDFs: page.pdf() only prints pages<\/li><\/ul><\/div><\/div><figure class=\"ok-shot\"><div class=\"ok-shot__bar\" aria-hidden=\"true\"><i><\/i><i><\/i><i><\/i><\/div><img src=\"https:\/\/theitlead.com\/blog\/wp-content\/uploads\/2026\/12\/til-pdf-puppeteer.png\" alt=\"Puppeteer documentation for the page.pdf() method with its signature and options\" width=\"1440\" height=\"900\" loading=\"lazy\" decoding=\"async\"><figcaption>Puppeteer page.pdf() generates a PDF with the print CSS media type.<\/figcaption><\/figure><\/div><dl class=\"ok-card__side\"><div><dt>Starting price<\/dt><dd>Free, Apache-2.0 (you run and pay for the Chrome processes)<\/dd><\/div><div><dt>Language<\/dt><dd>Node.js (Playwright offers page.pdf() for Node.js, Python, Java and .NET)<\/dd><\/div><div><dt>License<\/dt><dd>Apache-2.0<\/dd><\/div><div><dt>Latest release<\/dt><dd>26.0.0 (December 2, 2026)<\/dd><\/div><\/dl><\/div><\/section>\n\n\n\n<section class=\"ok-card ok-wide\" aria-labelledby=\"gotenberg\"><header class=\"ok-card__head\"><span class=\"ok-fav ok-fav--md\"><img src=\"\/blog\/wp-content\/uploads\/opskit\/fav\/gotenberg.png\" alt=\"\" width=\"24\" height=\"24\" loading=\"lazy\" decoding=\"async\"><\/span><div class=\"ok-card__title\"><h3 class=\"wp-block-heading\" id=\"gotenberg\">Gotenberg<\/h3><p class=\"ok-card__sub\">Gotenberg is an MIT-licensed Docker container that exposes an HTTP API for converting HTML, URLs, Markdown and Office files to PDF and for merging, splitting and signing PDFs.<\/p><\/div><span class=\"ok-job\">Open-source PDF API (Docker)<\/span><span class=\"ok-rate ok-muted\">No G2 rating<\/span><\/header><div class=\"ok-card__body\"><div class=\"ok-card__main\"><p class=\"ok-lede\">An MIT-licensed Docker container that exposes PDF conversion and editing as an HTTP API, using Chromium and LibreOffice.<\/p><p><strong>The invoice job.<\/strong> You start the container with one command, docker run --rm -p 3000:3000 gotenberg\/gotenberg:9, and post the invoice HTML as a multipart form to its Chromium route. Any language that can send an HTTP request can use it, so a PHP shop and a Go service can share the same internal PDF endpoint.<\/p><p><strong>Beyond HTML.<\/strong> The LibreOffice route converts more than 100 Office formats, including Word, Excel and PowerPoint. Other routes merge, split, rotate and stamp PDFs, fill or flatten forms, sign, encrypt, redact, convert to and validate PDF\/A and PDF\/UA (including Factur-X invoices), and turn pages into images.<\/p><p><strong>What you operate.<\/strong> Gotenberg is a service, not a library: you size the container, keep it off the public internet and update the image when Chromium or LibreOffice get security fixes. Version 9.11.1 was released on December 1, 2026.<\/p><div class=\"ok-cs\"><div class=\"ok-cs__yes\"><strong class=\"ok-cs__h\">Choose it when<\/strong><ul><li>any language should call one internal HTTP endpoint instead of embedding a library<\/li><li>you convert Word, Excel and PowerPoint files as well as HTML: LibreOffice handles 100+ formats<\/li><li>you need PDF\/A or PDF\/UA conversion, Factur-X, merge, split, form flattening and encryption without a license fee<\/li><\/ul><\/div><div class=\"ok-cs__no\"><strong class=\"ok-cs__h\">Skip it when<\/strong><ul><li>you can't run containers: it's a service you operate, not a library you import<\/li><li>you want a vendor SLA and support contract behind document generation<\/li><\/ul><\/div><\/div><figure class=\"ok-shot\"><div class=\"ok-shot__bar\" aria-hidden=\"true\"><i><\/i><i><\/i><i><\/i><\/div><img src=\"https:\/\/theitlead.com\/blog\/wp-content\/uploads\/2026\/12\/til-pdf-gotenberg.png\" alt=\"Gotenberg documentation showing the docker run command and a curl request that prints a web page to PDF\" width=\"1440\" height=\"900\" loading=\"lazy\" decoding=\"async\"><figcaption>Gotenberg starts with one docker run command and converts over HTTP.<\/figcaption><\/figure><\/div><dl class=\"ok-card__side\"><div><dt>Starting price<\/dt><dd>Free, MIT (self-hosted container)<\/dd><\/div><div><dt>Runs as<\/dt><dd>Docker container (gotenberg\/gotenberg:9)<\/dd><\/div><div><dt>License<\/dt><dd>MIT<\/dd><\/div><div><dt>Latest release<\/dt><dd>9.11.1 (December 1, 2026)<\/dd><\/div><div><dt>Engines<\/dt><dd>Chromium, LibreOffice<\/dd><\/div><\/dl><\/div><\/section>\n\n\n\n<section class=\"ok-card ok-wide\" aria-labelledby=\"weasyprint\"><header class=\"ok-card__head\"><span class=\"ok-fav ok-fav--md\"><img src=\"\/blog\/wp-content\/uploads\/opskit\/fav\/weasyprint.png\" alt=\"\" width=\"24\" height=\"24\" loading=\"lazy\" decoding=\"async\"><\/span><div class=\"ok-card__title\"><h3 class=\"wp-block-heading\" id=\"weasyprint\">WeasyPrint<\/h3><p class=\"ok-card__sub\">WeasyPrint is a BSD-licensed Python library that turns HTML and CSS into PDF with its own layout engine built for pagination.<\/p><\/div><span class=\"ok-job\">Open-source HTML-to-PDF library (Python)<\/span><span class=\"ok-rate ok-muted\">No G2 rating<\/span><\/header><div class=\"ok-card__body\"><div class=\"ok-card__main\"><p class=\"ok-lede\">A BSD-licensed Python library that lays out HTML and CSS for print with its own engine, without a browser.<\/p><p><strong>The invoice job.<\/strong> A Django or Flask app renders the invoice template to HTML and passes it to WeasyPrint, which paginates it with CSS paged media: page sizes and margins, running headers and footers, page counters and page breaks. There's no Chrome binary to install or keep patched, so containers stay small.<\/p><p><strong>The trade-off.<\/strong> WeasyPrint doesn't use a browser engine and runs no JavaScript, so charts must be rendered server-side, for example as SVG, before the HTML reaches it. Version 70.0 came out on September 8, 2026 and requires Python 3.10 or newer.<\/p><div class=\"ok-cs\"><div class=\"ok-cs__yes\"><strong class=\"ok-cs__h\">Choose it when<\/strong><ul><li>your back end is Python and reports are static HTML with print CSS such as page margins, running headers and page counters<\/li><li>you don't want a browser binary on the server: the layout engine is pure Python<\/li><\/ul><\/div><div class=\"ok-cs__no\"><strong class=\"ok-cs__h\">Skip it when<\/strong><ul><li>your templates rely on JavaScript, for example client-side charts: WeasyPrint runs no JavaScript<\/li><li>you're still on Python 3.9 or older: version 70 requires Python 3.10 or newer<\/li><\/ul><\/div><\/div><figure class=\"ok-shot\"><div class=\"ok-shot__bar\" aria-hidden=\"true\"><i><\/i><i><\/i><i><\/i><\/div><img src=\"https:\/\/theitlead.com\/blog\/wp-content\/uploads\/2026\/12\/til-pdf-weasyprint.png\" alt=\"WeasyPrint 70.0 documentation listing its Python dependencies for installation\" width=\"1440\" height=\"900\" loading=\"lazy\" decoding=\"async\"><figcaption>WeasyPrint 70.0 installs as a Python package with Pango.<\/figcaption><\/figure><\/div><dl class=\"ok-card__side\"><div><dt>Starting price<\/dt><dd>Free, BSD-3-Clause<\/dd><\/div><div><dt>Language<\/dt><dd>Python<\/dd><\/div><div><dt>License<\/dt><dd>BSD-3-Clause<\/dd><\/div><div><dt>Latest release<\/dt><dd>70.0 (September 8, 2026)<\/dd><\/div><\/dl><\/div><\/section>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"hosted-pdf-apis\">Hosted PDF APIs<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">A hosted API takes the renderer off your servers entirely. You send HTML, a URL or JSON and pay per document, credit or operation, and the vendor handles scaling and engine updates.<\/p>\n\n\n\n<section class=\"ok-card ok-wide\" aria-labelledby=\"adobe-pdf-services-api\"><header class=\"ok-card__head\"><span class=\"ok-fav ok-fav--md\"><img src=\"\/blog\/wp-content\/uploads\/opskit\/fav\/adobe-pdf-services.png\" alt=\"\" width=\"24\" height=\"24\" loading=\"lazy\" decoding=\"async\"><\/span><div class=\"ok-card__title\"><h3 class=\"wp-block-heading\" id=\"adobe-pdf-services-api\">Adobe PDF Services API<\/h3><p class=\"ok-card__sub\">Adobe PDF Services API is Adobe's cloud API for creating, converting, combining, OCRing, auto-tagging and extracting PDFs, with SDKs for Java, .NET, Node.js and Python.<\/p><\/div><span class=\"ok-job\">Cloud PDF API<\/span><span class=\"ok-rate ok-muted\">No G2 rating<\/span><\/header><div class=\"ok-card__body\"><div class=\"ok-card__main\"><p class=\"ok-lede\">Adobe's cloud API for creating, converting, combining and analyzing PDFs, with SDKs for Java, .NET, Node.js and Python.<\/p><p><strong>The invoice job.<\/strong> The Document Generation API merges JSON data into a Word template and returns a PDF, or the HTML to PDF operation converts static or dynamic HTML, a zip file or a URL. Each endpoint call counts as one document transaction, so merging 20 files and then running OCR on the result uses two.<\/p><p><strong>What sets it apart.<\/strong> PDF Extract returns text, tables and document structure as JSON, which helps when you process incoming supplier PDFs rather than only generating your own. Auto-tagging adds accessibility tags, and electronic seals use AATL certificates. Calls run in the US by default and can be sent to the EU region in Ireland.<\/p><p><strong>Limits and pricing.<\/strong> Files can be up to 100 MB, combine and split take up to 20 documents, and the free tier allows 25 requests per minute. Adobe publishes a free tier of 500 document transactions; paid volumes are sold through an Enterprise quote.<\/p><div class=\"ok-cs\"><div class=\"ok-cs__yes\"><strong class=\"ok-cs__h\">Choose it when<\/strong><ul><li>you need PDF Extract to pull text, tables and structure out of existing PDFs as JSON<\/li><li>accessibility auto-tagging and electronic seals with AATL certificates should come from the same API<\/li><li>documents should be processed in the EU: the SDK can switch a call to the Ireland region<\/li><\/ul><\/div><div class=\"ok-cs__no\"><strong class=\"ok-cs__h\">Skip it when<\/strong><ul><li>you handle protected health information: Adobe's support FAQ says the service is not HIPAA compliant<\/li><li>you need high throughput on the free tier: it allows 25 requests per minute<\/li><\/ul><\/div><\/div><figure class=\"ok-shot\"><div class=\"ok-shot__bar\" aria-hidden=\"true\"><i><\/i><i><\/i><i><\/i><\/div><img src=\"https:\/\/theitlead.com\/blog\/wp-content\/uploads\/2026\/12\/til-pdf-adobe-pdf-services.png\" alt=\"Adobe PDF Services API page with the create, convert, transform and OCR overview\" width=\"1440\" height=\"900\" loading=\"lazy\" decoding=\"async\"><figcaption>Adobe PDF Services API: create, convert, transform and OCR PDFs.<\/figcaption><\/figure><\/div><dl class=\"ok-card__side\"><div><dt>Starting price<\/dt><dd>Free tier of 500 document transactions; paid usage via Enterprise quote<\/dd><\/div><div><dt>SDKs<\/dt><dd>Java, .NET, Node.js, Python, REST<\/dd><\/div><div><dt>Limits<\/dt><dd>100 MB per file; 20 documents per combine<\/dd><\/div><div><dt>Compliance<\/dt><dd>SOC 2 Type 2, ISO 27001<\/dd><\/div><\/dl><\/div><\/section>\n\n\n\n<section class=\"ok-card ok-wide\" aria-labelledby=\"docraptor\"><header class=\"ok-card__head\"><span class=\"ok-fav ok-fav--md\"><img src=\"\/blog\/wp-content\/uploads\/opskit\/fav\/docraptor.png\" alt=\"\" width=\"24\" height=\"24\" loading=\"lazy\" decoding=\"async\"><\/span><div class=\"ok-card__title\"><h3 class=\"wp-block-heading\" id=\"docraptor\">DocRaptor<\/h3><p class=\"ok-card__sub\">DocRaptor is a hosted API that converts HTML to PDF and Excel using the Prince engine, with unlimited watermarked test documents on every account.<\/p><\/div><span class=\"ok-job\">Cloud HTML-to-PDF API<\/span><span class=\"ok-rate ok-muted\">No G2 rating<\/span><\/header><div class=\"ok-card__body\"><div class=\"ok-card__main\"><p class=\"ok-lede\">A hosted HTML-to-PDF and HTML-to-Excel API that renders with the Prince engine.<\/p><p><strong>The invoice job.<\/strong> You post the invoice HTML to the API and receive the PDF, or let DocRaptor host it at an unbranded URL. Prince supports CSS Paged Media, the W3C standard for print layout, including page margin boxes for headers and footers, footnotes and page counters, and DocRaptor adds a multi-pass JavaScript mode plus asynchronous and parallel generation.<\/p><p><strong>Plans.<\/strong> The free plan covers 5 documents a month, Basic $15 covers 125, Professional $29 covers 325, Premium $75 covers 1,250 and Max $149 covers 5,000. Bronze ($399, 15,000) and Silver ($1,000, 40,000) follow, then Enterprise. Every account gets unlimited watermarked test documents, so development doesn't count against the plan. Overage is a per-document price that depends on the plan.<\/p><p><strong>Compliance.<\/strong> DocRaptor states that it is SOC 2 and HIPAA compliant, and it tags documents for WCAG 2.0, Section 508 and ISO 14289 accessibility.<\/p><div class=\"ok-cs\"><div class=\"ok-cs__yes\"><strong class=\"ok-cs__h\">Choose it when<\/strong><ul><li>print layout matters: Prince supports CSS Paged Media with page margin boxes for headers and footers, footnotes and page counters<\/li><li>you also export spreadsheets: the same API outputs XLS and XLSX<\/li><li>your vendor review requires SOC 2 and HIPAA<\/li><\/ul><\/div><div class=\"ok-cs__no\"><strong class=\"ok-cs__h\">Skip it when<\/strong><ul><li>volume runs past 40,000 documents a month: the next step is an Enterprise quote<\/li><li>the data may not leave your network: DocRaptor runs only as a hosted service<\/li><\/ul><\/div><\/div><figure class=\"ok-shot\"><div class=\"ok-shot__bar\" aria-hidden=\"true\"><i><\/i><i><\/i><i><\/i><\/div><img src=\"https:\/\/theitlead.com\/blog\/wp-content\/uploads\/2026\/12\/til-pdf-docraptor.png\" alt=\"DocRaptor documentation with a sample HTML-to-PDF API request in JSON\" width=\"1440\" height=\"900\" loading=\"lazy\" decoding=\"async\"><figcaption>DocRaptor accepts HTML in a JSON request; test documents are free.<\/figcaption><\/figure><\/div><dl class=\"ok-card__side\"><div><dt>Starting price<\/dt><dd>Free (5 docs\/month); Basic $15 (125); Professional $29 (325); Premium $75 (1,250); Max $149 (5,000); Bronze $399 (15,000); Silver $1,000 (40,000); Enterprise quote<\/dd><\/div><div><dt>Engine<\/dt><dd>Prince<\/dd><\/div><div><dt>Output<\/dt><dd>PDF, XLS, XLSX<\/dd><\/div><div><dt>Compliance<\/dt><dd>SOC 2, HIPAA, GDPR<\/dd><\/div><div><dt>Testing<\/dt><dd>Unlimited watermarked test documents<\/dd><\/div><\/dl><\/div><\/section>\n\n\n\n<section class=\"ok-card ok-wide\" aria-labelledby=\"pdfshift\"><header class=\"ok-card__head\"><span class=\"ok-fav ok-fav--md\"><img src=\"\/blog\/wp-content\/uploads\/opskit\/fav\/pdfshift.png\" alt=\"\" width=\"24\" height=\"24\" loading=\"lazy\" decoding=\"async\"><\/span><div class=\"ok-card__title\"><h3 class=\"wp-block-heading\" id=\"pdfshift\">PDFShift<\/h3><p class=\"ok-card__sub\">PDFShift is a hosted API that renders HTML or URLs to PDF with Chromium and bills one credit per document per 5 MB of output.<\/p><\/div><span class=\"ok-job\">Cloud HTML-to-PDF API<\/span><span class=\"ok-rate ok-muted\">No G2 rating<\/span><\/header><div class=\"ok-card__body\"><div class=\"ok-card__main\"><p class=\"ok-lede\">A hosted API that converts HTML or a URL to PDF with Chromium and bills one credit per document per 5 MB.<\/p><p><strong>The invoice job.<\/strong> One POST with the HTML or a URL returns the PDF; options cover headers and footers with page numbers, text or image watermarks, and password protection. A two-page invoice stays well under 5 MB, so 5,000 invoices use 5,000 credits, which is the Growth plan at $39 a month.<\/p><p><strong>Plans.<\/strong> Free gives 50 credits a month with a 15 MB file limit and a 30-second timeout. Starter costs $9 for 500 credits, Boost $24 for 2,500, Growth $39 for 5,000 and Business $99 for 25,000, and the Shift plans go up to 1,000,000 credits for $999. Annual billing costs ten times the monthly price. Overage per credit falls from $0.04 on Starter to $0.001 on Shift 1M, and unused credits don't roll over.<\/p><p><strong>Data handling.<\/strong> By default PDFShift doesn't store documents or requests. Paid plans allow 100 seconds per conversion, and PDFShift can raise that to 15 minutes on request.<\/p><div class=\"ok-cs\"><div class=\"ok-cs__yes\"><strong class=\"ok-cs__h\">Choose it when<\/strong><ul><li>you want a published price ladder from 500 to 1,000,000 documents a month with per-credit overage from $0.04 down to $0.001<\/li><li>documents shouldn't be stored: requests and output aren't kept by default<\/li><li>long renders need time: paid plans allow 100 seconds, extendable to 15 minutes on request<\/li><\/ul><\/div><div class=\"ok-cs__no\"><strong class=\"ok-cs__h\">Skip it when<\/strong><ul><li>you need to edit, fill or sign existing PDFs: it only converts HTML and URLs<\/li><li>your output files are large: each 5 MB counts as another credit<\/li><\/ul><\/div><\/div><figure class=\"ok-shot\"><div class=\"ok-shot__bar\" aria-hidden=\"true\"><i><\/i><i><\/i><i><\/i><\/div><img src=\"https:\/\/theitlead.com\/blog\/wp-content\/uploads\/2026\/12\/til-pdf-pdfshift.png\" alt=\"PDFShift API reference introduction listing PDF, PNG, JPEG and WEBP conversion\" width=\"1440\" height=\"900\" loading=\"lazy\" decoding=\"async\"><figcaption>PDFShift converts HTML to PDF, PNG, JPEG or WebP.<\/figcaption><\/figure><\/div><dl class=\"ok-card__side\"><div><dt>Starting price<\/dt><dd>Free (50 credits\/month); Starter $9 (500); Boost $24 (2,500); Growth $39 (5,000); Business $99 (25,000); up to Shift 1M $999 (1,000,000); annual = 10x monthly<\/dd><\/div><div><dt>Engine<\/dt><dd>Chromium<\/dd><\/div><div><dt>Free plan<\/dt><dd>50 credits, 15 MB, 30 s timeout<\/dd><\/div><div><dt>Output<\/dt><dd>PDF, PNG, JPEG, WebP<\/dd><\/div><\/dl><\/div><\/section>\n\n\n\n<section class=\"ok-card ok-wide\" aria-labelledby=\"pdf-generator-api\"><header class=\"ok-card__head\"><span class=\"ok-fav ok-fav--md\"><img src=\"\/blog\/wp-content\/uploads\/opskit\/fav\/pdf-generator-api.png\" alt=\"\" width=\"24\" height=\"24\" loading=\"lazy\" decoding=\"async\"><\/span><div class=\"ok-card__title\"><h3 class=\"wp-block-heading\" id=\"pdf-generator-api\"><a href=\"https:\/\/pdfgeneratorapi.com\/\" target=\"_blank\" rel=\"noopener\">PDF Generator API<\/a><\/h3><p class=\"ok-card__sub\">PDF Generator API is a document generation service: you design templates in its editor, send JSON to a REST API and get PDFs back, and your own users can edit templates in a white-label editor.<\/p><\/div><span class=\"ok-job\">Template-based document generation API<\/span><span class=\"ok-rate ok-muted\">No G2 rating<\/span><\/header><div class=\"ok-card__body\"><div class=\"ok-card__main\"><p class=\"ok-lede\">A template-based document generation API: you design templates in a visual editor, send JSON over REST and receive PDFs.<\/p><p><strong>The invoice job.<\/strong> You build the invoice template once, with the AI template builder, by importing an existing PDF or in the drag-and-drop editor, and map data fields such as {invoice::number} to your JSON. Your app then calls the REST API with a JWT signed by your API secret and the order data, synchronously, asynchronously with a callback URL, or in batches that merge several templates into one document. The PDF comes back as base64, as a file, or as a URL that stays available for 30 days.<\/p><p><strong>Templates your customers edit.<\/strong> The editor can be embedded white-label in your own SaaS or ERP through an iframe, so customers change their own logos, tables and terms without a developer. It has dynamic tables with repeating headers, barcodes, QR codes, charts, expressions for calculations and conditional formatting, and the editor UI comes in 8 languages.<\/p><p><strong>More than generation.<\/strong> The same account includes HTML to PDF, PDF form filling, watermarking and encryption, PDF to image, document signing in the browser, web forms, PDF\/UA tagging and e-invoices in XRechnung and Factur-X format. Connectors exist for Zapier, Make, n8n, Airtable and Bubble, plus an MCP server for AI assistants.<\/p><p><strong>Plans.<\/strong> Creator costs $9 a month for 50 credits, Starter $59 for 1,000, Basic $99 for 5,000, Professional $199 for 15,000 and Enterprise $699 for 250,000, and annual billing costs ten times the monthly price. A document of up to 5 pages uses 1 credit, so the 5,000 two-page invoices fit Basic. Every account starts with a 14-day sandbox with 50 credits and no card, and test documents with a preview stamp are unlimited. The company, Actual Reports in Tallinn, Estonia, holds ISO 27001:2022 and offers dedicated instances in Virginia, Frankfurt, London or Sydney, with HIPAA and a BAA available on dedicated deployments.<\/p><div class=\"ok-cs\"><div class=\"ok-cs__yes\"><strong class=\"ok-cs__h\">Choose it when<\/strong><ul><li>your SaaS customers should design their own invoices or contracts in a white-label editor you embed in an iframe<\/li><li>templates should be built by non-developers with drag-and-drop tables, barcodes, QR codes, charts and conditions, while developers keep HTML and CSS<\/li><li>you produce e-invoices: XRechnung and Factur-X are API endpoints, with QR codes and PDF\/UA tagging in the same account<\/li><\/ul><\/div><div class=\"ok-cs__no\"><strong class=\"ok-cs__h\">Skip it when<\/strong><ul><li>you'd rather keep templates as code in your repository: here they live in the editor and are versioned through the API<\/li><li>your vendor review asks for a SOC 2 report: the company holds ISO 27001:2022 and publishes a DPA instead<\/li><\/ul><\/div><\/div><figure class=\"ok-shot\"><div class=\"ok-shot__bar\" aria-hidden=\"true\"><i><\/i><i><\/i><i><\/i><\/div><img src=\"https:\/\/theitlead.com\/blog\/wp-content\/uploads\/2026\/12\/til-pdf-pdf-generator-api.png\" alt=\"PDF Generator API embedded template editor showing a delivery note template with table, image and barcode tools\" width=\"1440\" height=\"900\" loading=\"lazy\" decoding=\"async\"><figcaption>The white-label template editor embeds in your SaaS through an iframe.<\/figcaption><\/figure><\/div><dl class=\"ok-card__side\"><div><dt>Starting price<\/dt><dd>Creator $9\/month (50 credits); Low Usage $29 (250); Starter $59 (1,000); Basic $99 (5,000); Professional $199 (15,000); Premium $399 (50,000); Enterprise $699 (250,000); annual = 10x monthly; 14-day free sandbox<\/dd><\/div><div><dt>API<\/dt><dd>REST v4, JWT auth, sync, async with callback, batch<\/dd><\/div><div><dt>Output<\/dt><dd>PDF or HTML; base64, file, 30-day URL or viewer<\/dd><\/div><div><dt>Credits<\/dt><dd>1 credit per 5 pages<\/dd><\/div><div><dt>Integrations<\/dt><dd>Zapier, Make, n8n, Airtable, Bubble, MCP server<\/dd><\/div><\/dl><\/div><\/section>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"open-source-libraries-for-one-job\">Open-source libraries for one job<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">These free libraries do one part of the PDF job very well. They are often combined with one of the tools above.<\/p>\n\n\n\n<section class=\"ok-card ok-wide\" aria-labelledby=\"pdf-js\"><header class=\"ok-card__head\"><span class=\"ok-fav ok-fav--md\"><img src=\"\/blog\/wp-content\/uploads\/opskit\/fav\/pdf-js.png\" alt=\"\" width=\"24\" height=\"24\" loading=\"lazy\" decoding=\"async\"><\/span><div class=\"ok-card__title\"><h3 class=\"wp-block-heading\" id=\"pdf-js\">PDF.js<\/h3><p class=\"ok-card__sub\">PDF.js is Mozilla's Apache-licensed JavaScript library for parsing and rendering PDFs in the browser, the same viewer Firefox uses.<\/p><\/div><span class=\"ok-job\">Open-source PDF viewer (JavaScript)<\/span><span class=\"ok-rate ok-muted\">No G2 rating<\/span><\/header><div class=\"ok-card__body\"><div class=\"ok-card__main\"><p class=\"ok-lede\">Mozilla's JavaScript library for parsing and rendering PDFs in the browser, the viewer built into Firefox.<\/p><p><strong>The invoice job.<\/strong> PDF.js doesn't create the invoice. It shows it: your customer portal loads the PDF with the pdfjs-dist package and renders pages to a canvas, with a text layer for search and selection, so invoices open inside the app instead of a download. Version 6.5.438 was released on November 1, 2026.<\/p><div class=\"ok-cs\"><div class=\"ok-cs__yes\"><strong class=\"ok-cs__h\">Choose it when<\/strong><ul><li>users should open PDFs inside your web app without a plugin or a commercial viewer license<\/li><li>you need page rendering and text extraction in the browser, for example for previews or search<\/li><\/ul><\/div><div class=\"ok-cs__no\"><strong class=\"ok-cs__h\">Skip it when<\/strong><ul><li>you need to create PDFs: PDF.js reads and renders, it doesn't generate documents<\/li><\/ul><\/div><\/div><figure class=\"ok-shot\"><div class=\"ok-shot__bar\" aria-hidden=\"true\"><i><\/i><i><\/i><i><\/i><\/div><img src=\"https:\/\/theitlead.com\/blog\/wp-content\/uploads\/2026\/12\/til-pdf-pdf-js.png\" alt=\"PDF.js web viewer rendering a research paper with zoom and toolbar controls\" width=\"1440\" height=\"900\" loading=\"lazy\" decoding=\"async\"><figcaption>The PDF.js viewer renders PDFs in the browser.<\/figcaption><\/figure><\/div><dl class=\"ok-card__side\"><div><dt>Starting price<\/dt><dd>Free, Apache-2.0<\/dd><\/div><div><dt>Language<\/dt><dd>JavaScript (browser, pdfjs-dist on npm)<\/dd><\/div><div><dt>License<\/dt><dd>Apache-2.0<\/dd><\/div><div><dt>Latest release<\/dt><dd>6.5.438 (November 1, 2026)<\/dd><\/div><\/dl><\/div><\/section>\n\n\n\n<section class=\"ok-card ok-wide\" aria-labelledby=\"questpdf\"><header class=\"ok-card__head\"><span class=\"ok-fav ok-fav--md\"><img src=\"\/blog\/wp-content\/uploads\/opskit\/fav\/questpdf.png\" alt=\"\" width=\"24\" height=\"24\" loading=\"lazy\" decoding=\"async\"><\/span><div class=\"ok-card__title\"><h3 class=\"wp-block-heading\" id=\"questpdf\">QuestPDF<\/h3><p class=\"ok-card__sub\">QuestPDF is a .NET library that composes PDFs in C# with a fluent layout API, free under a Community license for organizations below $1 million in annual revenue.<\/p><\/div><span class=\"ok-job\">PDF library (.NET)<\/span><span class=\"ok-rate ok-muted\">No G2 rating<\/span><\/header><div class=\"ok-card__body\"><div class=\"ok-card__main\"><p class=\"ok-lede\">A .NET library that composes documents in C# with a fluent layout API instead of HTML.<\/p><p><strong>The invoice job.<\/strong> The invoice becomes a C# class: header, table of line items and footer described with QuestPDF's layout API, which keeps the template in your repository, under code review and covered by unit tests. There's no browser or HTML engine involved.<\/p><p><strong>The license.<\/strong> The Community license is free for organizations with less than $1,000,000 in annual gross revenue, individuals, charities, academic institutions and open-source projects, but not for public-sector bodies or listed companies. Professional costs $1,999 and Enterprise $4,999, both perpetual with unlimited developers and 12 months of updates.<\/p><div class=\"ok-cs\"><div class=\"ok-cs__yes\"><strong class=\"ok-cs__h\">Choose it when<\/strong><ul><li>your team writes C# and wants invoices and reports as typed, testable code instead of HTML templates<\/li><li>a one-time Professional license for unlimited developers fits better than per-document fees<\/li><\/ul><\/div><div class=\"ok-cs__no\"><strong class=\"ok-cs__h\">Skip it when<\/strong><ul><li>you work for a public-sector body or a listed company: they need a paid license regardless of revenue<\/li><li>designers should edit templates without a developer: layouts live in C# code<\/li><\/ul><\/div><\/div><figure class=\"ok-shot\"><div class=\"ok-shot__bar\" aria-hidden=\"true\"><i><\/i><i><\/i><i><\/i><\/div><img src=\"https:\/\/theitlead.com\/blog\/wp-content\/uploads\/2026\/12\/til-pdf-questpdf.png\" alt=\"QuestPDF homepage presenting the code-first PDF library for C#\" width=\"1440\" height=\"900\" loading=\"lazy\" decoding=\"async\"><figcaption>QuestPDF builds documents in C# code.<\/figcaption><\/figure><\/div><dl class=\"ok-card__side\"><div><dt>Starting price<\/dt><dd>Community license free under $1M annual revenue; Professional $1,999 and Enterprise $4,999 (perpetual, unlimited developers, 12 months of updates)<\/dd><\/div><div><dt>Language<\/dt><dd>.NET (C#)<\/dd><\/div><div><dt>License<\/dt><dd>Community (free) or Professional\/Enterprise<\/dd><\/div><div><dt>Latest release<\/dt><dd>2026.9.2 (November 12, 2026)<\/dd><\/div><\/dl><\/div><\/section>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"other-pdf-libraries-worth-knowing\">Other PDF libraries worth knowing<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">These projects are widely used for narrower jobs or older stacks. Still, check the maintenance status before you build on them, because two of them haven't shipped a release in years.<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th>Library<\/th><th>Language and license<\/th><th>What it does<\/th><th>Status on December 1, 2026<\/th><\/tr><\/thead><tbody><tr><td>pdf-lib<\/td><td>TypeScript and JavaScript, MIT<\/td><td>Creates and modifies PDFs, fills and flattens forms; no HTML input, no text extraction<\/td><td>Last release 1.17.1 in November 2021<\/td><\/tr><tr><td>PDFKit<\/td><td>JavaScript for Node.js and browsers, MIT<\/td><td>Generates PDFs with vector graphics, fonts, tables, forms and PDF\/UA tags<\/td><td>Release 0.21.0 on November 20, 2026<\/td><\/tr><tr><td>Apache PDFBox<\/td><td>Java, Apache License 2.0<\/td><td>Extracts text, splits and merges, fills forms, signs and renders pages to images<\/td><td>Releases 3.0.8 and 2.0.37 in July 2026<\/td><\/tr><tr><td>PyMuPDF<\/td><td>Python, AGPLv3 or Artifex commercial license<\/td><td>Extracts text, renders pages, edits annotations and form fields, merges documents<\/td><td>Release 2.2 on November 25, 2026<\/td><\/tr><tr><td>wkhtmltopdf<\/td><td>C++ command-line tool, LGPL-3.0<\/td><td>Converts HTML to PDF with the old QtWebKit engine<\/td><td>Repository archived; the project advises against untrusted HTML<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"what-pdf-libraries-and-apis-cost\">What PDF libraries and APIs cost<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The billing units differ: open-source tools cost only the servers you run, SDKs are licensed per developer, product or document volume, and hosted APIs bill per document, credit or operation. This table puts them on one example: 5,000 two-page invoices a month.<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th>Tool<\/th><th>Price (USD)<\/th><th>Billing unit<\/th><th>Example: 5,000 two-page invoices a month<\/th><\/tr><\/thead><tbody><tr><td>iText<\/td><td>AGPL free; commercial quote<\/td><td>Annual subscription by PDFs processed, or OEM<\/td><td>Ask iText for a volume quote<\/td><\/tr><tr><td>Apryse<\/td><td>Packages from $1,500<\/td><td>Quote<\/td><td>At least $1,500<\/td><\/tr><tr><td>Nutrient<\/td><td>Free ($5 usage), Starter $75, Growth $275 a month<\/td><td>Per operation, $37.50 per 1,000 HTML-to-PDF<\/td><td>$187.50 of usage; Starter includes $90 of it<\/td><\/tr><tr><td>Puppeteer<\/td><td>Free<\/td><td>Your servers<\/td><td>Hosting for a small pool of headless Chrome instances<\/td><\/tr><tr><td>Gotenberg<\/td><td>Free<\/td><td>Your servers<\/td><td>Hosting for one or more containers<\/td><\/tr><tr><td>WeasyPrint<\/td><td>Free<\/td><td>Your servers<\/td><td>Hosting inside your existing Python app<\/td><\/tr><tr><td>Adobe PDF Services API<\/td><td>Free tier of 500 transactions; then quote<\/td><td>Per document transaction<\/td><td>Above the free tier, so an Enterprise quote<\/td><\/tr><tr><td>DocRaptor<\/td><td>Free (5), $15 (125) to $1,000 (40,000) a month<\/td><td>Per document<\/td><td>$149 a month on Max (5,000 documents)<\/td><\/tr><tr><td>PDFShift<\/td><td>Free (50), $9 (500) to $999 (1,000,000) a month<\/td><td>Per credit (document per 5 MB)<\/td><td>$39 a month on Growth (5,000 credits)<\/td><\/tr><tr><td>PDF Generator API<\/td><td>$9 (50 credits) to $699 (250,000 credits) a month<\/td><td>Per credit (document per 5 pages)<\/td><td>$99 a month on Basic (5,000 credits)<\/td><\/tr><tr><td>PDF.js<\/td><td>Free<\/td><td>None<\/td><td>Not a generator; free for viewing<\/td><\/tr><tr><td>QuestPDF<\/td><td>Free under $1M revenue; Professional $1,999 one time<\/td><td>Per organization<\/td><td>$0 or $1,999 once, plus your servers<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<aside class=\"ok-callout ok-callout--watch\"><p><strong>What makes the PDF bill grow<\/strong> Hosted APIs count different things. PDF Generator API charges another credit every 5 pages and PDFShift every 5 MB, so long reports and image-heavy documents cost more than the document count suggests. Nutrient's rates rise by operation, from $37.50 per 1,000 HTML conversions to $750 per 1,000 digital signatures. Open-source renderers have no meter, but headless Chrome needs memory for every page it renders, and the AGPL edition of iText becomes a commercial license once you ship closed-source software.<\/p><\/aside>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"choosing-by-job\">Choosing by job<\/h2>\n\n\n\n<ul class=\"ok-rows\"><li><span>Invoices and reports from a Java or .NET back end, with signatures and PDF\/A<\/span><strong class=\"ok-go\">iText, or QuestPDF for .NET teams under $1M revenue<\/strong><\/li><li><span>HTML templates with JavaScript charts, rendered on your own servers<\/span><strong class=\"ok-go\">Puppeteer or Playwright, or Gotenberg as a shared HTTP service<\/strong><\/li><li><span>Static HTML from a Python app with print CSS and no browser<\/span><strong class=\"ok-go\">WeasyPrint<\/strong><\/li><li><span>Word, Excel and PowerPoint files converted to PDF<\/span><strong class=\"ok-go\">Gotenberg (LibreOffice) or Nutrient<\/strong><\/li><li><span>Print-grade layout as a hosted service with SOC 2 and HIPAA<\/span><strong class=\"ok-go\">DocRaptor<\/strong><\/li><li><span>Cheap hosted HTML to PDF at growing volume<\/span><strong class=\"ok-go\">PDFShift<\/strong><\/li><li><span>Templates that non-developers or your customers edit<\/span><strong class=\"ok-go\">PDF Generator API<\/strong><\/li><li><span>Text, tables and structure extracted from incoming PDFs<\/span><strong class=\"ok-go\">Adobe PDF Services API (PDF Extract)<\/strong><\/li><li><span>Viewing, annotating and redacting documents inside your app<\/span><strong class=\"ok-go\">PDF.js for viewing only; Apryse or Nutrient for editing<\/strong><\/li><\/ul>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"rolling-out-a-pdf-service\">Rolling out a PDF service<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">A PDF renderer is quick to add and then runs for years. This sequence works with any of the tools above.<\/p>\n\n\n\n<ol class=\"ok-timeline ok-wide\"><li><span class=\"ok-owner ok-owner--0\">Developer and product owner<\/span><span class=\"ok-tl__task\">List the documents, their inputs (HTML, data plus template, Office files) and monthly volume in documents and pages <\/span><span class=\"ok-tl__when\">Week 1<\/span><\/li><li><span class=\"ok-owner ok-owner--1\">IT lead<\/span><span class=\"ok-tl__task\">Decide where rendering may run: in-process library, internal container or vendor cloud, and which region customer data may reach <\/span><span class=\"ok-tl__when\">Week 1<\/span><\/li><li><span class=\"ok-owner ok-owner--2\">Developer<\/span><span class=\"ok-tl__task\">Build one real template and compare output, render time and file size on two candidates <span class=\"ok-fav ok-fav--xs\"><img src=\"\/blog\/wp-content\/uploads\/opskit\/fav\/gotenberg.png\" alt=\"\" width=\"13\" height=\"13\" loading=\"lazy\" decoding=\"async\"><\/span><span class=\"ok-fav ok-fav--xs\"><img src=\"\/blog\/wp-content\/uploads\/opskit\/fav\/pdfshift.png\" alt=\"\" width=\"13\" height=\"13\" loading=\"lazy\" decoding=\"async\"><\/span><\/span><span class=\"ok-tl__when\">Week 2<\/span><\/li><li><span class=\"ok-owner ok-owner--1\">IT lead<\/span><span class=\"ok-tl__task\">Check the license or plan against the volume: AGPL terms, revenue thresholds, credits per page or per MB <\/span><span class=\"ok-tl__when\">Week 2<\/span><\/li><li><span class=\"ok-owner ok-owner--3\">Admin<\/span><span class=\"ok-tl__task\">Store API keys or JWT secrets in your secrets manager, name an owner for each, and keep self-hosted renderers off the public internet <\/span><span class=\"ok-tl__when\">Week 3<\/span><\/li><li><span class=\"ok-owner ok-owner--2\">Developer<\/span><span class=\"ok-tl__task\">Add monitoring for failed renders and usage alerts before the plan's credit limit <\/span><span class=\"ok-tl__when\">Week 3<\/span><\/li><\/ol>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"security-notes-for-pdf-rendering\">Security notes for PDF rendering<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">A renderer that loads HTML behaves like a browser on your server. If templates include customer-supplied text or URLs, escape everything, block requests to internal addresses and give the renderer no access to cloud metadata endpoints. The wkhtmltopdf project itself warns not to use it with untrusted HTML, and its QtWebKit engine has been unmaintained since 2016.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Hosted APIs move that risk to the vendor. However, they add another one: an API key or signing secret that can generate documents on your account. Keep it in a secrets manager, rotate it when people leave, and record who owns it. Our guide to <a href=\"https:\/\/theitlead.com\/blog\/secrets-management-software\/\">secrets management software<\/a> compares tools for storing those credentials.<\/p>\n\n\n\n<aside class=\"ok-product ok-wide\" id=\"the-it-lead\"><span class=\"ok-fav ok-fav--md ok-fav--ours\"><img src=\"\/blog\/wp-content\/uploads\/opskit\/fav\/itl.svg\" alt=\"\" width=\"24\" height=\"24\" loading=\"lazy\" decoding=\"async\"><\/span><div><p class=\"ok-product__eyebrow\">What these tools don&#x27;t answer<\/p><p class=\"ok-product__head\">Know who owns every service account, and when it was last reviewed.<\/p><p>The IT Lead imports service accounts from CSV, nominates owners, collects their attestations and keeps a review trail an auditor can follow. Built for small IT teams and MSPs.<\/p><\/div><a class=\"ok-product__cta\" href=\"https:\/\/theitlead.com\/\">See how it works<\/a><\/aside>\n\n\n<div id=\"rank-math-faq\" class=\"rank-math-block\">\n<div class=\"rank-math-list \">\n<div id=\"faq-question-1\" class=\"rank-math-list-item\">\n<h3 class=\"rank-math-question \">What is the best free PDF library?<\/h3>\n<div class=\"rank-math-answer \">\n\n<p>Puppeteer and Gotenberg render HTML to PDF for free with Chromium, WeasyPrint does it in Python without a browser, PDF.js views PDFs in the browser and PDFKit generates them in JavaScript. QuestPDF is free for organizations under $1 million in annual revenue.<\/p>\n\n<\/div>\n<\/div>\n<div id=\"faq-question-2\" class=\"rank-math-list-item\">\n<h3 class=\"rank-math-question \">Should I use a PDF library or a PDF API?<\/h3>\n<div class=\"rank-math-answer \">\n\n<p>A library runs in your process with no per-document fee but makes you maintain the engine. A hosted API such as DocRaptor, PDFShift or PDF Generator API bills per document and handles scaling and updates, at the cost of sending data to the vendor.<\/p>\n\n<\/div>\n<\/div>\n<div id=\"faq-question-3\" class=\"rank-math-list-item\">\n<h3 class=\"rank-math-question \">Is iText free for commercial use?<\/h3>\n<div class=\"rank-math-answer \">\n\n<p>Only under the AGPLv3, which requires you to publish your application's source code. Closed-source products need a commercial iText license, sold as an annual subscription priced by the number of PDFs processed or as an OEM license.<\/p>\n\n<\/div>\n<\/div>\n<div id=\"faq-question-4\" class=\"rank-math-list-item\">\n<h3 class=\"rank-math-question \">Is wkhtmltopdf still maintained?<\/h3>\n<div class=\"rank-math-answer \">\n\n<p>No. Its GitHub repository is archived, the last release is 0.12.6 from June 2020, and the project's status page advises against using it with untrusted HTML. Gotenberg, Puppeteer and WeasyPrint are common replacements.<\/p>\n\n<\/div>\n<\/div>\n<div id=\"faq-question-5\" class=\"rank-math-list-item\">\n<h3 class=\"rank-math-question \">Which PDF API lets customers edit their own templates?<\/h3>\n<div class=\"rank-math-answer \">\n\n<p>PDF Generator API embeds a white-label template editor in your application through an iframe. Customers edit their templates there, and your app fills them with JSON through the REST API.<\/p>\n\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n\n\n<ul class=\"ok-related ok-wide\"><li><a href=\"\/blog\/secrets-management-software\/\"><span>Software<\/span>Best secrets management software<\/a><\/li><li><a href=\"\/blog\/it-automation-software\/\"><span>Software<\/span>Best IT automation software<\/a><\/li><li><a href=\"\/blog\/service-account-inventory-template\/\"><span>Templates<\/span>Service account inventory template<\/a><\/li><\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Compare 12 PDF libraries and APIs, from iText and Gotenberg to DocRaptor and PDFShift: licenses, prices and which one fits HTML to PDF, templates or viewing.<\/p>\n","protected":false},"author":1,"featured_media":772,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[],"class_list":["post-771","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-software"],"_links":{"self":[{"href":"https:\/\/theitlead.com\/blog\/wp-json\/wp\/v2\/posts\/771","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/theitlead.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/theitlead.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/theitlead.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/theitlead.com\/blog\/wp-json\/wp\/v2\/comments?post=771"}],"version-history":[{"count":2,"href":"https:\/\/theitlead.com\/blog\/wp-json\/wp\/v2\/posts\/771\/revisions"}],"predecessor-version":[{"id":818,"href":"https:\/\/theitlead.com\/blog\/wp-json\/wp\/v2\/posts\/771\/revisions\/818"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/theitlead.com\/blog\/wp-json\/wp\/v2\/media\/772"}],"wp:attachment":[{"href":"https:\/\/theitlead.com\/blog\/wp-json\/wp\/v2\/media?parent=771"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/theitlead.com\/blog\/wp-json\/wp\/v2\/categories?post=771"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/theitlead.com\/blog\/wp-json\/wp\/v2\/tags?post=771"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}