Create a template
Create an HTML template with placeholders such as {{customer}} once via the API, with page format, margins, header, footer and a list of required fields. For simple documents, Markdown or HTML without a template is enough.
Documents from templates · API & MCP
The API turns Markdown, HTML or your HTML template with placeholders into a PDF and files it in your workspace.
With lists, totals and required-field checks. Via REST API or via MCP from Claude, ChatGPT and other assistants.
Trusted by leading companies worldwide
How it works
Two routes lead to the PDF: render Markdown or HTML directly, or fill a stored template with variables. Both file the result in your workspace.
Create an HTML template with placeholders such as {{customer}} once via the API, with page format, margins, header, footer and a list of required fields. For simple documents, Markdown or HTML without a template is enough.
Per document, send the template, the target workspace and the variables as JSON, including lists for line items. If a required field is missing, the API names it and creates no document.
PaperOffice renders the PDF and files it in the selected workspace like an upload. The response contains the pofid of the new document.
Capabilities
What a document built from data needs: placeholders, lists, calculations, page layout and a checked filing step.
Send up to 5 MB of content, optionally with your own CSS, header, footer and metadata. The PDF is then filed in your workspace.
Your layout with placeholders such as {{customer}}. Create it once, then send only the data per document. The title may contain placeholders too.
{{#each}} repeats a block per entry, {{@number}} counts along. Suited to line items, participants or appointments.
sum, sum_product, multiply and calculate build totals and formulas with a safe math parser. format_number and format_date format numbers and dates.
If a field from variables_schema.required is missing, the API returns 400 and names the field. No document is created.
A4, A3, A5, Letter or Legal, portrait or landscape, margins from 0 to 100 mm, header and footer per template.
Upload rights and the security level of the workspace are checked, and the file is stored in an encrypted container.
Scripts, forms, iframes and external resources are removed. The renderer loads nothing from outside.
curl -X POST \ "https://api.paperoffice.ai/latest/document_generation/create-from-content" \ -H "Authorization: Bearer po_ut_YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{"workspace_id":1553,"content_type":"markdown","title":"Protokoll Projektstart","content":"# Protokoll Projektstart\n\nTeilnehmer: 4","idempotency_key":"protokoll-projektstart-2026-10"}' curl -X POST \ "https://api.paperoffice.ai/latest/document_generation/template-create" \ -H "Authorization: Bearer po_ut_YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{"name":"Angebot","html_content":"<h1>Angebot {{offer_no}}</h1><p>{{customer}}</p>{{#each items}}<p>{{@number}}. {{name}}: {{multiply qty price}}</p>{{/each}}<p>Summe: {{sum_product items qty price}}</p>","variables_schema":{"required":["offer_no","customer"]},"page_format":"A4","page_orientation":"portrait"}' curl -X POST \ "https://api.paperoffice.ai/latest/document_generation/create-from-template" \ -H "Authorization: Bearer po_ut_YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{"template_id":"tpl_angebot_3f9a21c7","workspace_id":1553,"title":"Angebot {{offer_no}}","variables":{"offer_no":"A-2026-0412","customer":"Nordlicht Energie GmbH","items":[{"name":"Wartung","qty":12,"price":89.5},{"name":"Einrichtung","qty":1,"price":450}]}}' For developers
Render Markdown, create a template, generate a document from a template. The calls run synchronously and return 201 Created.
With idempotency_key, create-from-content returns the same result for 24 hours, without a second document.
MISSING_REQUIRED_VARIABLES names missing fields, UNSUPPORTED_FORMAT flags any format other than PDF.
Seven tools from po_documents_create_from_content to po_templates_delete for Claude, ChatGPT and other assistants.
Security
Every generated PDF is filed like an upload, with checks of upload rights and security level. The renderer removes active content and loads nothing from outside. The PDF is generated in our own data center in the EU.
Frequently asked questions
No. You use document generation via the REST API or via MCP from an AI assistant. You then find the finished PDF in the selected workspace.
create-from-content renders the Markdown or HTML you send, always as A4 portrait with standard margins. create-from-template fills a stored template with your variables and uses its page format, margins, header and footer.
{{variable}} for values, {{#each list}} for lists with {{@index}} and {{@number}}, sum, sum_product, multiply and calculate for calculations, format_number and format_date, plus today, now, year, month, day and time. Values are inserted HTML-safe, and unfilled placeholders are dropped.
The API creates PDF only. The template language does not evaluate conditions such as {{#if}}, so both branches end up in the PDF. The calculation helpers output numbers in German format (1.234,56), and dates default to DD.MM.YYYY. The default font contains no Japanese, Chinese or Korean characters.
If a field listed in variables_schema.required is missing or empty, the API returns 400 MISSING_REQUIRED_VARIABLES and names the missing fields. No document is created, and nothing is charged.
In the workspace you specify with workspace_id, just like an upload. You need upload rights there. If the workspace has an AI-DMS automation set up, it processes the PDF like any new document.
Yes. Seven tools are available: po_documents_create_from_content, po_documents_create_from_template, po_templates_list, po_templates_get, po_templates_create, po_templates_update and po_templates_delete. Claude or ChatGPT, for example, can then create a quote from your template.
The main account and admins. Templates belong to the account that created them, and sub-accounts do not see them. template-delete deactivates a template, template-update with is_active=1 reactivates it.
Send an idempotency_key of 8 to 128 characters with create-from-content. The same request then returns the stored result for 24 hours, without a second document. The same key with different content returns 409.
All plans. There is no restriction by plan. Billing applies to each generated and stored document and to template management calls. An AI-DMS automation in the workspace can cause additional costs, as with any upload.
Case Studies
Discover how businesses transformed their processes with PaperOffice AI.
Measurable customer success
"Enterprise document management for all our mining operations. World class."
"FDA-regulated pharmaceutical labels require seamless documentation. PaperOffice has reduced our approval process from days to hours."
"Technical documentation and order processing now run fully automatically."
"Digitization has revolutionized our administration. Citizen inquiries are now processed in minutes instead of days."
"Patient records, medical reports, and referrals are automatically captured and classified. Our practice team finally has time for their patients."
"8,000 employees and thousands of guest documents every day. PaperOffice has completely digitized our back-office processes."
"Loan applications and compliance documents are now processed in minutes instead of hours. The regulatory review is fully automated."
"Construction project documentation and compliance are now digital and traceable."
"Check-in forms, invoices, and guest communications are fully digital. Our concierge team now focuses on providing excellent service."
"Gas station billing, supplier documents, and compliance records from over 250 stations are automatically processed and archived."
"GMP-relevant documentation for pharmaceutical functional labels now runs automatically. Audit trails are seamless and instantly accessible."
"Blueprints, permits, and customer files for our wooden houses are now managed centrally. After six generations, we are finally paperless."
"Supplier contracts, certificates, and customs papers for hundreds of roasteries worldwide are automatically captured and assigned to the correct product."
"Temperature logs, CMR waybills, and food certificates are automatically scanned and assigned to the order. Misallocations are a thing of the past."
"Heavy transport permits, route plans, and project documentation are now instantly accessible digitally. No more searching through folders."
"Customs documents, warehouse receipts, and shipping orders for our Eastern European network are automatically classified. Four generations of logistics, finally digital."
"Printing specifications, customer approvals, and material certificates are now accessible centrally. The production error rate has dropped to near zero."
"Sustainability certificates, supplier contracts, and customer specifications are processed automatically. Swiss precision, now also digital."
"Building permits, subcontractor contracts, and acceptance protocols for our commercial properties are now fully documented digitally."
"Purchase agreements, exposés, and customer files from over 30 years of market leadership are now digitally searchable. Every agent finds everything in seconds."
"Ocean freight documents, customs declarations, and bills of lading are automatically captured. Baltic Sea logistics has never been so efficient."
"Thousands of custom packaging orders per week, including design approvals, print data, and delivery documents. PaperOffice keeps it all together."
"Pathology lab documentation and device certifications are now fully automated. Seamless traceability for every specimen."
"Loan documents, security papers, and customer correspondence are processed in minutes instead of hours. The regulatory review is seamless."
"Technical specifications, quality certificates, and recycling protocols for our steel production are central and instantly accessible."
"Pharma and cosmetic label specifications with regulatory requirements are automatically checked and approved. No more manual checklists."
"KYC documents, investment reports, and regulatory filings are classified in seconds. As an MAS-regulated robo-advisor, seamless compliance is essential."
"Safety data sheets, transport permits, and ADR documents for chemical logistics are automatically assigned. Zero tolerance for errors."
"Certificates of authenticity, supplier records, and customer warranties for our pearl collections are automatically archived and instantly accessible."
"SME loan applications, security documents, and regulatory reports are automatically classified. Our advisors have more time for customer consulting."
"Customer files from over 135 years of banking history are being successively digitized. 5,000 employees now have instant access to all documents."
"Microcredit applications and compliance documents for millions of customers are now processed in minutes instead of days. A game changer for financial inclusion."
"Hundreds of thousands of delivery notes and return slips per day are processed automatically. Vietnam's leading e-commerce logistics provider, now paperless."
"CNC manufacturing protocols, material certificates, and customer specifications for oil, gas, and aerospace projects are now fully documented digitally."
"Vision 2030 requires complete digitization. PaperOffice processes government documents for Saudi Arabia's digital backbone."
"Material certificates, hardening protocols, and customer specifications are automatically assigned to the correct order. Australia's only Q&T manufacturer, now paperless."
"Weld seam protocols, structural calculations, and project plans are managed digitally. Our workshop teams have access in real time."
"Aerospace certificates, CNC programs, and customer tolerances are automatically classified. AS9100 evidence has never been this easy to produce."
"Merchant contracts, KYC documents, and transaction receipts for hundreds of thousands of SMEs are processed in seconds. Mexico's payment revolution, paperless."
"Harvest documentation, export certificates, and quality protocols for our high-altitude Malbecs are automatically archived. 120 years of winemaking tradition, now digital."
"Millions of user verifications and regulatory documents are processed fully automatically. Scaling without paper."
"Merchant onboarding documents and compliance records for Africa's leading payment provider are processed in minutes instead of days."
"Organic certificates, supplier audits, and product labels for thousands of natural products are automatically checked and archived."
"Regulatory documents from 33 African countries, partner contracts, and audit trails are managed fully automatically. An enterprise DMS for a $3 billion fintech."
"Prescriptions and medication management now run fully automatically. More time for our patients."
"Centuries-old documents are now digitally searchable. A milestone for our historical archives."
"Our caregivers finally have more time for residents instead of paperwork."
"500,000+ records digitized. Our deputies now find all information instantly."
"Patient records management is now a breeze. Everything automatically captured and archived."
"Inheritance and estate documentation is now efficient and error-free."
"Digital property management for all our residential complexes. Tenants and owners are thrilled."
"With PaperOffice, we have accelerated our invoice processing by 99%. The AI automatically recognizes all relevant data and assigns it correctly."
"PaperOffice has become indispensable to our daily work. Orders, quotes, and invoices are now automated."
"The documentation of our care services is now digital and automated. More time for our patients."
"Technical drawings, bills of materials, and quality protocols are instantly searchable. A search that used to take 30 minutes now takes 30 seconds."
"Client receipts, tax assessments, and annual financial statements are automatically sorted and assigned to the correct client. Receipt chaos is a thing of the past."
"Project documentation, SLAs, and customer communication for our IT consulting projects are automatically classified and archived."
Where would you like to try PaperOffice?
Your trial is ready
Where would you like to start?
The full workspace is optimized for the computer. The mobile version is for capturing, reviewing, and approving documents.
app.paperoffice.aiStart on the computer
A personal access link will be sent to the email address provided.
Open PaperOffice Mobile
Capture and work with documents directly on the smartphone.
Open mobile version