Install Pressjet Beta 7¶
Download v0.1.0-beta.7 · Benchmark explorer · Six practical guides
The GitHub prerelease distributes the Linux x86-64 and ARM64 executables, both Node renderer packages, the TypeScript/JavaScript SDK, Linux CLI wheels, a universal Python SDK wheel and a source archive, Go and PHP SDK archives, and the WebAssembly SDK. The HTTP document format stays at version 1. Keep the binary, SDK and optional HTML worker on matching beta versions.
Print your first PDF¶
From a Linux shell with GitHub CLI, run:
tag=v0.1.0-beta.7
name="pressjet-$tag-$(uname -m)-unknown-linux-musl"
gh release download "$tag" -R tonysantana1492/pressjet \
-p "$name.tar.gz" -p "$name.tar.gz.sha256"
sha256sum -c "$name.tar.gz.sha256"
tar xzf "$name.tar.gz"
printf '%s\n' '{"type":"document","properties":{},"children":[{"type":"page","properties":{"size":"A4"},"children":[{"type":"text","properties":{},"children":["My first Pressjet PDF"]}]}]}' > hello.json
"./$name/pressjet" --version
"./$name/pressjet" render hello.json -o hello.pdf
The same executable can run as a service. Set a secret key of at least 32 characters, then run "./$name/pressjet" serve. The native OCI image is ghcr.io/tonysantana1492/pressjet:0.1.0-beta.7. Bind it to loopback for local testing:
export PRESSJET_API_KEY="$(openssl rand -hex 32)"
docker run --rm -p 127.0.0.1:8080:8080 -e PRESSJET_API_KEY \
ghcr.io/tonysantana1492/pressjet:0.1.0-beta.7
For an offline or registry-free installation, download the two matching *-image-v0.1.0-beta.7-amd64.tar.gz (or arm64) release assets and run docker load -i FILE.tar.gz for each. They load under the same versioned image names.
Render a template with JSON data¶
Use the native CLI to validate a v1 template and render a paginated invoice. Run these commands from the repository root with the installed CLI on your path. Example files
cd docs/agents/examples
pressjet template check invoice.template.json invoice.data.json &&
pressjet template render invoice.template.json invoice.data.json invoice.pdf
Print existing HTML¶
Beta 7 compiles print HTML natively from the CLI and API. Save a print-ready file as invoice.html
and run pressjet check invoice.html and pressjet render invoice.html -o invoice.pdf. Over HTTP,
send {"version":1,"html":"<h1>Invoice</h1>"} to POST /v1/html. The optional HTML worker serves
requests that set "engine": "reference". Self-hosting guide
Beta 7 includes MCP over stdio and Streamable HTTP. Connect an MCP client
Choose an SDK¶
Node.js 22+ / TypeScript. Install the SDK and the native package for your Linux architecture from GitHub Releases.
release=https://github.com/tonysantana1492/pressjet/releases/download/v0.1.0-beta.7
arch=$(node -p 'process.arch')
npm install "$release/pressjet-0.1.0-beta.7.tgz" "$release/pressjet-linux-$arch-0.1.0-beta.7.tgz"
./node_modules/.bin/pressjet --version
printf '%s\n' '{"pages":[{"label":"First dispatch"}]}' > data.json
./node_modules/.bin/pressjet-template render dispatch-slips data.json dispatch.pdf
Python 3.11+. Install the wheel in your virtual environment. On Linux x86-64 and ARM64,
the platform wheel installs the SDK and
the pressjet command. The universal wheel contains the HTTP SDK. Both are on GitHub Releases.
release=https://github.com/tonysantana1492/pressjet/releases/download/v0.1.0-beta.7
arch=$(uname -m)
python -m pip install "$release/pressjet-0.1.0b7-py3-none-manylinux_2_17_$arch.musllinux_1_2_$arch.whl"
pressjet --version
Go 1.26+. Use the module tag from your Go project.
go get github.com/tonysantana1492/pressjet/sdks/go@v0.1.0-beta.7
To install the SDK from the GitHub archive, run these commands in your Go module:
gh release download v0.1.0-beta.7 -R tonysantana1492/pressjet -p pressjet-go-v0.1.0-beta.7.zip
mkdir -p packages/pressjet-go
unzip -q pressjet-go-v0.1.0-beta.7.zip -d packages/pressjet-go
go mod edit -require=github.com/tonysantana1492/pressjet/sdks/go@v0.1.0-beta.7 \
-replace=github.com/tonysantana1492/pressjet/sdks/go=./packages/pressjet-go
PHP 8.3+. With Composer and ext-curl, use the release archive as a local path repository. Set the explicit package version because the extracted directory has no Git tags.
gh release download v0.1.0-beta.7 -R tonysantana1492/pressjet -p pressjet-php-v0.1.0-beta.7.zip
mkdir -p packages/pressjet
unzip -q pressjet-php-v0.1.0-beta.7.zip -d packages/pressjet
composer config repositories.pressjet '{"type":"path","url":"packages/pressjet","options":{"versions":{"pressjet/pressjet":"0.1.0-beta.7"}}}'
composer require pressjet/pressjet:0.1.0-beta.7
The release includes SHA256SUMS for the Linux binaries and server SDK archives. Download it alongside your chosen files and run sha256sum --ignore-missing -c SHA256SUMS. Each SDK guide includes working examples for the authenticated HTTP API. TypeScript · Python · Go · PHP
Render in the browser or on an edge worker¶
Download the WebAssembly SDK and its checksum from the beta release, then install the package into your app.
gh release download v0.1.0-beta.7 -R tonysantana1492/pressjet \
-p pressjet-wasm-0.1.0-beta.7.tgz -p pressjet-wasm-0.1.0-beta.7.tgz.sha256
sha256sum -c pressjet-wasm-0.1.0-beta.7.tgz.sha256
npm install ./pressjet-wasm-0.1.0-beta.7.tgz
The package includes adapters for React, Preact, Vue and Svelte. The WebAssembly guide covers loading the engine in a browser or an edge worker.
Evaluate the beta¶
Use a representative document, check extracted text and page breaks, and measure a complete export. The public service benchmark uses 21 warm sequential requests per configuration on one logical CPU. The four competing renderers handle the same invoice contents. Agent token costs and local CLI memory use have their own measurements. Method and raw observations · Agent results
Report issues with the version, input format, expected output and a synthetic reproduction. Issue tracker