Introduction
A PDF layout engine for Node.js, written in Rust.
npm install @inkoxide/reactnpm install @inkoxide/vuenpm install @inkoxide/sveltenpm install @inkoxide/angularTypeset documents from React, Vue, Svelte or Angular components, or from a JSON document tree.
Inkoxide does the typesetting of a PDF: text shaping, line breaking, layout, pagination and PDF
output, in native code. Documents are written as components of React, Vue, Svelte or Angular,
styled with Tailwind classes or style objects, or built as JSON by any program and rendered with
inkoxide. Render times, on the server and in the
browser, are in Benchmarks.
Features
- Typesetting. OpenType shaping, justification, hyphenation with TeX patterns, orphans and widows, font fallback and right-to-left text.
- Layout. Flexbox and CSS grid, absolute positioning, transforms, borders and radii.
- Pagination. Tables that split across pages with repeating header rows, headers and footers, page numbers, keep-together blocks and page breaks.
- Content. JPEG, PNG, GIF, WebP and SVG images, vector drawing, links, bookmarks, fillable form fields, text notes and file attachments.
- Output. Font subsetting (TrueType and CFF), variable fonts as static instances, PDF/A-1b, 2b, 2a, 3b and 3a, tagged PDF and PDF/UA-1, AES-256 encryption with passwords and permissions, parallel rendering across pages, and byte-identical output for identical input.
- Validation. Every document is checked against a JSON Schema, with the path of each error. In a template, errors carry the component stack.
- Your framework. The same components in React, Vue, Svelte and Angular, which build the same document and so the same PDF, byte for byte.
Performance
Layout and PDF writing run in parallel across pages, and fonts are parsed once per process. Benchmarks has the render times, on the server and in the browser, with the machines and the methodology.
Synced from README.md in the inkoxide repository.