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.platform/packages/pdf-templates/src/templates.ts.
From the CLI
From the API
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 asignatures 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
fromandto. - Contract. One slot per entry in
parties, labelled with itsrole. - Turn them off or change them. In the data,
signatures: trueuses the defaults (quote and contract do this when the key is missing) andsignatures: falseremoves them. Pass an array of slots, or an object, to set your own:
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:
renderTemplatePdf is unchanged.
- Shared source:
allternit/platform/packages/pdf-templates(templates.tsbuilds a list of layout blocks;html.tsandpdf.tsdraw them;fonts.tsholds the base64 Noto Sans subset, about 340 KB of font data, 460 KB as text).allternit-ai/src/lib/pdf-templatesmirrors every file exceptios-entry.ts. Change both together. - Web and PWA:
render.tsloadspdf.tsandfonts.tson demand, so the weight only lands when someone makes a PDF. - Desktop: the
shell:print-to-pdfIPC (src/main/print-to-pdf.ts) opens a hidden sandboxed window with its own in-memory session and callswebContents.printToPDF. The renderer reaches it aswindow.allternit.shell.printToPdf. - iOS:
PDFTemplateRenderer.swiftrunspdf-templates.jsin JavaScriptCore and prints the HTML with WebKit. Rebuild the bundle withplatform/packages/pdf-templates/scripts/build-ios-bundle.shafter changingtemplates.ts,themes.tsorhtml.ts.PDFTemplateSheet.swiftis the UI.