What you get

Seven document templates, each with three themes, turn plain data into a print-ready PDF with real text and clean page breaks: Themes are Professional (graphite ink, one warm rule), Minimal (black and white) and Executive (navy header band). Paper is Letter or A4. The ticket shows its code as text. It is not a scannable barcode.

Make one in the app

On Desktop, ai.allternit.com, the phone layout and the m.allternit.com app, open a Doc, Sheet, Ops sheet or Dashboard, open the Download menu and choose PDF from template. Pick a template, a theme and a header style, edit the data as JSON, check the page on the right, then choose Download PDF. On the phone layout the same picker opens as a bottom sheet. On the iPhone app, open the artifact and tap the PDF from template button in the top bar. If the artifact’s own content is a JSON object, the PDF uses it; otherwise the template’s sample data is used and the sheet says so. The PDF is made on the phone, so it works with no computer connected and offline. It opens in the share sheet so you can save it to Files or send it. The web, phone layout and m.allternit.com app also make the PDF in the browser. None of these need a paired computer; you only need to be signed in to open the artifact.

Desktop makes real PDFs of pages, designs and dashboards

In Allternit Desktop, PDF on a Page, Design or Dashboard artifact prints the page with Chromium into a real PDF file. A dashboard that is too large to print this way falls back to the print dialog. Outside Desktop, Design and Dashboard exports open your browser’s print dialog, where you choose Save as PDF.

Data shape

Missing fields are left blank. Unknown fields are ignored. Money amounts are numbers; dates and times are text you write the way you want them printed.
Totals are computed for you (subtotal, discount, tax, amount due). The sample for every template is in platform/packages/pdf-templates/src/templates.ts.

From the CLI

The CLI draws the PDF itself, so it needs no server and no browser. Use it from the quote and client-report skills to turn a draft into a letterhead document.

From the API

The reply is application/pdf. A bad request returns JSON with error and message. The route is served by the office engine behind allternit-api, so it needs a computer that runs it (your Desktop or cloud computer); cloud-api only relays it there. The apps do not use this route. No headless browser is involved.

Signature lines

Quote and contract PDFs end with a signatures block: an acceptance note, then signing areas side by side, each with a label, a 56 pt signing area and a date line. Invoices have none unless you ask.
  • Quote. Two slots, “Service provider” and “Client”, named from from and to.
  • Contract. One slot per entry in parties, labelled with its role.
  • Turn them off or change them. In the data, signatures: true uses the defaults (quote and contract do this when the key is missing) and signatures: false removes them. Pass an array of slots, or an object, to set your own:
Each slot has an id (kept unique), a label, an optional name and an optional signed_on, which prints “Signed DATE” under the line. An invoice gets the same two slots as a quote when you pass signatures: true. In the Doc PDF from template dialog, Add signature lines adds the block to the data. The signature lines are where you sign afterwards with the Sign action; see Review and sign. Template PDFs with signature lines are always drawn by the built-in PDF writer, never by Chromium print, so each signing area is exactly where the slot says.

Limits

  • PDFs made by the CLI, the API and the browser embed Noto Sans (regular and bold), which covers Latin, Latin Extended, Vietnamese, Greek and Cyrillic. Chinese, Japanese, Korean, Arabic, Hebrew, Thai and Indic text prints as a question mark there. Desktop and iPhone use system fonts, which cover them.
  • The browser and server PDFs and the Desktop and iPhone print paths draw the same layout, but line breaks can differ by a word here and there. The iPhone PDF is US Letter.
  • Android uses the m.allternit.com app, so it has the same picker.

For developers

renderTemplatePdfWithSlots(req) returns { pdf, slots }. pdf is the same bytes as renderTemplatePdf, and slots lists where each signing area was drawn:
Pass the slots to a sign request so the signature lands in its slot. renderTemplatePdf is unchanged.
  • Shared source: allternit/platform/packages/pdf-templates (templates.ts builds a list of layout blocks; html.ts and pdf.ts draw them; fonts.ts holds the base64 Noto Sans subset, about 340 KB of font data, 460 KB as text). allternit-ai/src/lib/pdf-templates mirrors every file except ios-entry.ts. Change both together.
  • Web and PWA: render.ts loads pdf.ts and fonts.ts on demand, so the weight only lands when someone makes a PDF.
  • Desktop: the shell:print-to-pdf IPC (src/main/print-to-pdf.ts) opens a hidden sandboxed window with its own in-memory session and calls webContents.printToPDF. The renderer reaches it as window.allternit.shell.printToPdf.
  • iOS: PDFTemplateRenderer.swift runs pdf-templates.js in JavaScriptCore and prints the HTML with WebKit. Rebuild the bundle with platform/packages/pdf-templates/scripts/build-ios-bundle.sh after changing templates.ts, themes.ts or html.ts. PDFTemplateSheet.swift is the UI.