Pressa - LaTeX to PDF
v0.12.0Compile LaTeX to PDF without installing TeX Live.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
compile
Compile LaTeX source into a PDF. Returns a PDF URL, page count and compile time. USE THIS WHEN: you have LaTeX source (or a \documentclass) and no local pdflatex / TeX Live installation to run it with. This is that missing compiler, available over HTTP. Also use it whenever the user asks for a document where typesetting matters - an invoice, contract, report, letter, CV, certificate, or academic paper - since you can write the LaTeX yourself and compile it here. DO NOT USE THIS TO: convert HTML to PDF, merge, split or compress existing PDF files, or extract text from a PDF. This compiles LaTeX…
| Parameter | Type | Description |
|---|---|---|
latex * | string | Complete LaTeX source code. Must include \documentclass and a \begin{document}...\end{document} body. Plain text, markdown, raw notes, JSON, or fragments without these markers will be rejected with no… |
assets | object | Optional map of filename => base64-encoded binary. Supported formats: PNG, JPG, JPEG, PDF, SVG. Filenames must be plain (no paths, no leading dot, alphanumeric + _-). Each asset is written into the co… |
compiler | string | LaTeX compiler to use (default: pdflatex). pdflatex and xelatex are available on every plan. lualatex requires Pro or Business; on Free or Starter it returns compiler_not_available. |
use_stored_assets | array | Names of assets in the user's persistent library to inject into this compile. Put a file there with create_asset_upload (any size) or save_asset (small base64), then reference it by name here. Cannot… |
list_public_templates
List Pressa's public, professionally designed document templates (invoices, purchase orders, packing slips, delivery notes, receipts, reports, certificates, resumes, CVs, cover letters), each with a one-line summary, a preview image URL and the colours it comes in. Several designs of one document (`document`, e.g. five resume designs) take the same data. Use this when the user wants one of these documents and has no layout of their own, or asks to see designs to choose from. Works without an API key.
get_public_template
Get a public template's fields (JSON schema), sample data, filling instructions and LaTeX source. Read the instructions before collecting data from the user. To make the PDF, pass the data to `render_public_template`; to change the layout itself, edit the source and use `compile`. Works without an API key.
| Parameter | Type | Description |
|---|---|---|
template * | string | Template slug from list_public_templates, e.g. invoice or classic-resume. |
render_public_template
Fill a public template with the user's data and return a PDF link. Data must match the template's schema (see get_public_template); a missing field comes back as a list of what to ask for, and costs nothing. The designs of one document take the same data (the five resume designs, as do the packing slip and the delivery note), so switching design is the same call with a different slug, and `color` prints a design in another of its colours. Works without an API key within the daily free limit.
| Parameter | Type | Description |
|---|---|---|
data * | object | Values for the template's fields, shaped like its sample data. |
template * | string | Template slug, e.g. invoice or modern-resume. |
color | string | Optional: one of the template's colours (list_public_templates), e.g. navy. Left out, the default. |