DocGen Guide 128 tools · prices checked 20 Oct 2026 Find my tool
Menu

How to generate PDFs from a JSON API

How to turn JSON into PDFs with an HTML-to-PDF API or a template API, what each expects from you, and which tools to compare by template type and price.

Updated 21 Oct 2026

A JSON API is the widest source in our records. Sixty-three tools generate PDFs from data sent to an API, from small HTML converters to enterprise Word engines. The full list is on the JSON API to PDF page, and the JSON API hub covers the other outputs. This guide explains what each kind of API expects from you and how to narrow the field.

The native option

There is no native option, because the API is the generator. What matters is which kind of API you call, since the two kinds ask different work of you.

An HTML-to-PDF API expects finished HTML, or a URL, and returns a PDF. Your code does the templating. You merge the JSON into HTML with whatever library your stack already uses, add print CSS for page size, margins, headers and page breaks, and post the result. The API handles fonts, pagination and rendering. This suits teams that already build HTML views and want a PDF of them.

A template API expects a template stored with the provider and a JSON payload. You build the template once, in Word, HTML or a visual builder, with placeholders that name JSON fields. Each call sends the template ID and the data, and the provider fills the template and returns a PDF. Repeating data, such as invoice lines, goes in an array that the template loops over. This suits teams where someone outside engineering edits the layout.

Either way you will handle an API key, retries on failure, and storage of the file the API returns.

The Zapier, Make or n8n path

You do not have to write code to call these APIs. Many template APIs also offer steps in Zapier, Make or n8n, so a no-code workflow can send the JSON and nobody has to write integration code. Carbone, CraftMyPDF and APITemplate.io list all three platforms in our records. PDFMonkey lists Zapier and Make. The HTML-to-PDF converters in our records mostly list no automation integrations, which fits their developer focus.

Use this path when the data already moves through an automation platform, or when you want to test a template before anyone writes integration code.

Dedicated tools

Seven tools that show the range. Prices were checked on 20 Oct 2026.

  • SourceToDocs takes JSON through its API, which comes with the Pro plan, writes Google Slides and Google Docs, and exports PDF, PPTX and DOCX from Google Docs templates. Plans start from $19 a month billed annually ($24 monthly), with a free plan of 1 document a month.
  • Carbone is a template API that fills Word, Excel, PowerPoint, ODT or HTML templates, from about $28 a month (EUR 26, converted), with 100 free cloud documents a month and a free self-hosted Community edition.
  • PDFMonkey is a template API with HTML and CSS templates, from about $5 a month (EUR 5) for 300 documents, with 20 free documents a month.
  • CraftMyPDF is a template API with a drag-and-drop editor, from $29 a month for 1,200 PDFs, with 50 free PDFs a month.
  • Anvil fills PDF forms and HTML templates and adds e-sign, metered at $0.10 a PDF after 2,500 free credits, with an AI Pack at $99 a month.
  • DocRaptor is an HTML-to-PDF API built on the Prince engine, from $15 a month for 125 documents, with 5 free documents.
  • Gotenberg is an MIT-licensed Docker API that converts HTML, Markdown and Office files to PDF through Chromium and LibreOffice, free to self-host.

Which route to pick

Pick by who edits the template. If developers own the layout and already render HTML, an HTML-to-PDF API is the shortest path. DocRaptor is hosted. Gotenberg runs on your own servers with no per-document fee, and you pay for the hosting and upkeep instead.

If someone in operations or design will change the layout, pick a template API. SourceToDocs suits people who work in Google Docs. Carbone suits people who work in Word. CraftMyPDF suits people who prefer a drag-and-drop editor. PDFMonkey suits people who can edit HTML and CSS.

Pick by volume next. Among these seven, free allowances run from 1 document a month with SourceToDocs to 2,500 credits with Anvil. The entry plans of PDFMonkey, DocRaptor, Carbone and CraftMyPDF run from about $5 to $29 a month and cover 125 to 1,200 documents on the plans that state a count. At tens of thousands, compare metered pricing such as Anvil’s per-PDF rate against flat plans, and price out self-hosting Gotenberg or Carbone Community.

Line items and long tables need a check of their own. With HTML you control page breaks in CSS. With a template API, confirm the template loops over arrays and repeats table headers across pages. Send your longest real payload during the trial.

If the document must be filled into an existing PDF form, for example a government form, look at tools with a PDF form editor, such as Anvil.

Tools for this

63 tools
  1. 01
    Conga Composer Editor's pick conga.com

    Enterprise Salesforce document generation.

    Outputs PDF, DOCX, XLSX, PPTX, HTML, email Template Word Also reads Salesforce G2 4.4 (849)
    Not published
  2. 02
    Formstack Documents Editor's pick formstack.com

    Formerly WebMerge. Only in Suite plan, $250/mo paid annually, 250 deliveries/mo.

    Outputs PDF, DOCX, PPTX, e-sign documents Template Word, PDF form, Visual builder Also reads Salesforce, HubSpot, Airtable, built-in forms +2 G2 4.5 (148)
    $250 / mo
  3. 03
    Documint Editor's pick documint.me

    Silver $39/mo billed annually.

    Outputs PDF, e-sign documents Template Visual builder Also reads Airtable, HubSpot, Coda, Zapier/Make/n8n G2 4.7 (9)
    $39 / mo
  4. 04
    DocsAutomator Editor's pick docsautomator.co

    Professional $19/mo yearly, $29 monthly.

    Outputs PDF, Google Docs, email Template Google Docs, Word, PDF form Also reads Airtable, Notion, Google Sheets, Google Forms +2
    $19 / mo
  5. 05
    Carbone Editor's pick carbone.io

    Priced in EUR: Essential EUR 29/mo (EUR 26 annual).

    Outputs PDF, DOCX, XLSX, PPTX, HTML Template Word Also reads Airtable, Zapier/Make/n8n
    $28 EUR 26, converted
  6. 06
    Anvil Editor's pick useanvil.com

    PDF fill, generate, e-sign API.

    Outputs PDF, e-sign documents Template PDF form, HTML
    $99 / mo
  7. 07
    PDFMonkey Editor's pick pdfmonkey.io

    EUR pricing: Starter EUR 5/mo, 300 docs.

    Outputs PDF Template HTML Also reads Zapier/Make/n8n
    $5 EUR 5, converted
  8. 08
    Fluent (Windward) windwardstudios.com

    Formerly Windward Studios, acquired by PDFTron (now Apryse).

    Outputs PDF, DOCX, XLSX, PPTX, HTML Template Word Also reads Salesforce, Excel G2 4.4 (77)
    On request
  9. 09
    Xpertdoc xpertdoc.com

    CCM and document generation with Microsoft Dynamics CRM connector.

    Outputs PDF, DOCX, email, e-sign documents Template Word G2 4.3 (26)
    On request
  10. 10
    SourceToDocs sourcetodocs.com

    Data to Google Slides and Docs.

    Outputs Google Slides, Google Docs, PDF, PPTX, DOCX, HTML Template Google Docs Also reads Airtable, Google Sheets, CSV
    $19 / mo
  11. 11
    Knackly knackly.io

    Legal document automation.

    Outputs DOCX, PDF Template Word Also reads built-in forms, Zapier/Make/n8n
    $209 / mo
  12. 12
    Syncfusion Document SDK syncfusion.com

    $1,199/developer/yr (computed $99.92/mo).

    Outputs PDF, DOCX, XLSX, PPTX Template Word
    $99.92 / mo
12 of 63 shown Show the other 51Hide the other 51
  1. 13
    Templafy templafy.com

    AI document agents in Microsoft Office.

    Outputs PPTX, DOCX, PDF Template Word Also reads Salesforce
    $40 / mo
  2. 14
    APITemplate.io apitemplate.io

    PDF Basic $19 or $24 (billing labels unclear).

    Outputs PDF Template Visual builder, HTML Also reads Airtable, Zapier/Make/n8n
    $19 / mo
  3. 15
    Bannerbear bannerbear.com

    Image, PDF and video API.

    Outputs PDF Template Visual builder Also reads Airtable, Zapier/Make/n8n
    $49 / mo
  4. 16
    CraftMyPDF craftmypdf.com

    Lite $29/mo, 1,200 PDFs. Free 50/mo.

    Outputs PDF Template Visual builder Also reads Airtable, Zapier/Make/n8n
    $29 / mo
  5. 17
    Docmosis docmosis.com

    Cloud Professional $49/mo, 4,000+ pages.

    Outputs PDF, DOCX, HTML Template Word
    $49 / mo
  6. 18
    Docxpresso docxpresso.com

    EUR pricing shown as Core 2500 EUR/user/mo (likely 25.00, formatting unclear).

    Outputs PDF, DOCX Template Word Also reads built-in forms
    $27 EUR 25/user, converted
  7. 19
    DoxFlowy doxflowy.com

    Core $20/user/mo annual per Capterra.

    Outputs PDF, e-sign documents Template Visual builder Also reads built-in forms
    $20 / mo
  8. 20
    Orshot orshot.com

    Image, PDF and video render.

    Outputs PDF Template Visual builder Also reads Airtable, Zapier/Make/n8n
    $39 / mo
  9. 21
    PDF Generator API pdfgeneratorapi.com

    Priced in EUR, annual only: Creator EUR 80/yr.

    Outputs PDF Template Visual builder Also reads Airtable, Zapier/Make/n8n
    $7 EUR 80/yr, converted
  10. 22
    Templated.io templated.io

    Image, PDF and MP4 render API.

    Outputs PDF Template Visual builder Also reads Airtable, Zapier/Make/n8n
    $29 / mo
  11. 23
    DocRaptor docraptor.com

    HTML to PDF via Prince. Basic $15/mo, 125 docs.

    Outputs PDF, XLSX Template HTML
    $15 / mo
  12. 24
    Foxit Document Generation API developer-api.foxit.com

    Word template plus JSON. Startup $1,750/yr (computed $145.83/mo).

    Outputs PDF, DOCX Template Word
    $145.83 / mo
  13. 25
    Inkit inkit.com

    Secure document generation and e-sign.

    Outputs PDF, e-sign documents Template HTML
    $15 / mo
  14. 26
    PDF.co pdf.co

    PDF API suite including HTML template to PDF.

    Outputs PDF Template HTML Also reads Zapier/Make/n8n
    $8.99 / mo
  15. 27
    Api2Pdf api2pdf.com

    Pay per use: $1/mo base plus bandwidth and compute.

    Outputs PDF Template HTML
    $1 / mo, cheapest here
  16. 28
    DocSpring docspring.com

    PDF form filling and HTML PDFs.

    Outputs PDF Template PDF form, HTML
    $49 / mo
  17. 29
    Doppio doppio.sh

    HTML to PDF and screenshot API.

    Outputs PDF Template HTML
    $16 / mo
  18. 30
    doqs.dev doqs.dev

    PDF filling API. EUR pricing: Starter EUR 0.08/doc, Scale EUR 25/mo.

    Outputs PDF Template PDF form
    $27 EUR 25, converted
  19. 31
    html2pdf.app html2pdf.app

    HTML to PDF API. Startup $9/mo, 1,000 credits.

    Outputs PDF Template HTML
    $9 / mo
  20. 32
    PDFBolt pdfbolt.com

    HTML/Handlebars templates.

    Outputs PDF Template HTML
    $19 / mo
  21. 33
    Contractbook contractbook.com

    Centralize $399/mo annual, currency labels mixed.

    Outputs PDF, e-sign documents Template Visual builder Also reads HubSpot, Salesforce, Pipedrive, Zapier/Make/n8n
    Not published free tier
  22. 34

    Also Dynamics 365, SugarCRM, Power Platform.

    Outputs PDF, DOCX, XLSX, email, e-sign documents Template Word Also reads Salesforce
    On request
  23. 35
    jsreport jsreport.net

    Free up to 5 templates. Enterprise $395/yr single instance.

    Outputs PDF, DOCX, XLSX, PPTX, HTML Template HTML
    On request free tier
  24. 36
    Aspose.Words products.aspose.com

    SDK. Developer Small Business license $1,679 perpetual.

    Outputs PDF, DOCX, HTML, Markdown Template Word
    On request
  25. 37
    Gamma gamma.app

    AI presentations. Exports PPTX, PDF, Google Slides on Free.

    Outputs PPTX, PDF, Google Slides Template Visual builder Also reads HubSpot
    Not published free tier
  26. 38
    Legito legito.com

    Smart document and contract automation.

    Outputs DOCX, PDF, e-sign documents Template Visual builder, Word Also reads built-in forms
    Not published free tier
  27. 39
    ActiveDocs activedocs.com

    Word-based enterprise document generation.

    Outputs DOCX, PDF, e-sign documents Template Word
    On request
  28. 40
    docassemble docassemble.org

    MIT guided-interview and document assembly.

    Outputs PDF, DOCX Template Word, PDF form Also reads built-in forms
    Free
  29. 41
    HotDocs mitratech.com

    Owned by Mitratech. Desktop and cloud.

    Outputs DOCX, PDF Template Word Also reads built-in forms
    On request
  30. 42
    PDF4me pdf4me.com

    Ynoox GmbH. Generate Documents endpoint.

    Outputs PDF, DOCX Template Word Also reads Zapier/Make/n8n
    Not published free tier
  31. 43
    Placid placid.app

    Creative automation for images, PDFs, video.

    Outputs PDF Template Visual builder Also reads Airtable, Zapier/Make/n8n
    Not published
  32. 44
    Adobe Document Generation API developer.adobe.com

    Part of Adobe PDF Services.

    Outputs PDF, DOCX Template Word
    On request free tier
  33. 45
    Wordize wordize.com

    Programmatic document processing SDK.

    Outputs DOCX, PDF Template Word
    Not published
  34. 46
    Gotenberg gotenberg.dev

    MIT Docker API. HTML, Markdown and Office to PDF via Chromium and LibreOffice.

    Outputs PDF Template HTML
    Free
  35. 47
    PDFCrowd pdfcrowd.com

    HTML to PDF API by Pdfcrowd s.r.o.

    Outputs PDF Template HTML
    Not published
  36. 48
    pdfme pdfme.com

    MIT TypeScript library with WYSIWYG template designer.

    Outputs PDF Template Visual builder
    Free
  37. 49
    PDFShift pdfshift.io

    HTML to PDF API. Free 50 credits/mo.

    Outputs PDF Template HTML
    Not published free tier
  38. 50
    WeasyPrint weasyprint.org

    Open-source HTML/CSS to PDF in Python by Kozea; support by CourtBouillon.

    Outputs PDF Template HTML
    Free
  39. 51
    Docupilot Editor's pick via Zapier docupilot.com

    Starter $29/mo, 100 docs.

    Outputs PDF, DOCX, PPTX, XLSX, e-sign documents Template Word, Visual builder Also reads Airtable, Zapier/Make/n8n, built-in forms
    $29 / mo
  40. 52
    Gavel Editor's pick via Zapier gavel.io

    Formerly Documate (Documate Inc. dba Gavel).

    Outputs DOCX, PDF Template Word, PDF form Also reads built-in forms, Zapier/Make/n8n
    $83 / mo
  41. 53
    Documentero via Zapier documentero.com

    Micro $19.50/mo shown; price formatting unclear on page.

    Outputs DOCX, XLSX, PDF Template Word Also reads Google Sheets, CSV, Excel, Zapier/Make/n8n +1
    $19.50 / mo
  42. 54
    Crove via Zapier crove.app

    Individual $33/mo billed $390/yr.

    Outputs PDF, DOCX, e-sign documents Template Word, Visual builder Also reads built-in forms, Zapier/Make/n8n
    $33 / mo
  43. 55
    DocuGenerate via Zapier docugenerate.com

    Word templates plus JSON.

    Outputs PDF, DOCX Template Word Also reads Coda, Zapier/Make/n8n
    $19 / mo
  44. 56
    CustomJS via Zapier customjs.space

    JS and HTML-to-PDF functions for Make and n8n.

    Outputs PDF Template HTML Also reads Zapier/Make/n8n
    $9 / mo
  45. 57
    Eledo via Zapier eledo.online

    EUR pricing: Breeze EUR 6.90/mo.

    Outputs PDF Template Visual builder Also reads Zapier/Make/n8n
    $7 EUR 6.90, converted
  46. 58
    pdf noodle via Zapier pdfnoodle.com

    Starter $35/mo, 3,000 PDFs.

    Outputs PDF Template Visual builder, HTML Also reads Zapier/Make/n8n
    $35 / mo
  47. 59
    PandaDoc Editor's pick pandadoc.com

    Adjacent proposal and e-sign suite.

    Outputs PDF, e-sign documents, DOCX Template Visual builder Also reads HubSpot, Salesforce, Pipedrive, Zapier/Make/n8n G2 4.7 (3324)
    $19 / mo
  48. 60
    DocuSeal docuseal.com

    Open-source e-sign and PDF form builder.

    Outputs PDF, e-sign documents Template PDF form Also reads built-in forms
    $20 / mo
  49. 61
    SignWell signwell.com

    Adjacent e-sign with template API, 25 free API docs/mo.

    Outputs PDF, e-sign documents Template PDF form Also reads Zapier/Make/n8n
    $10 / mo
  50. 62
    Dropbox Sign API sign.dropbox.com

    Adjacent e-sign API with templates.

    Outputs e-sign documents, PDF Template PDF form
    $75 / mo
  51. 63
    Browserless browserless.io

    Headless browser service with PDF API.

    Outputs PDF Template HTML
    $25 / mo

The same list with filters and prices: JSON API to PDF.

Not sure which one fits? Answer three questions and get three tools back, scored by the rules on the methodology page.

Find my tool