HTML to PDF · beta
HTML to PDF from the command line
Render a page the way a browser would, then write a PDF. Same CLI, same credits, but a separate renderer service does the browser work.
Terminal
jetformat html to-pdf page.html -o page.pdf
jetformat html to-pdf https://example.com/report -o report.pdf --wait-ready ".report-ready"
jetformat html to-pdf ./site -o site.pdf --page-size A4 --landscapeBeta.html to-pdf sends the page to a separate Jetformat HTML renderer service. Office and PDF commands run entirely inside the CLI and do not need it. Set the renderer address once with
JETFORMAT_HTML_SERVER; the default is 127.0.0.1:8080.HTML and CSS
Keep the layout rules you already use for reports, invoices, and dashboards.
Assets included
Local images, fonts, and linked assets render in the same job.
Wait for the page
Wait for a selector or a fixed delay before capture.
Files or URLs
A file, a static directory, or an HTTPS URL, same command.
Convert one real file today.
Install the CLI and inspect a document with free reads. Office edits use one credit per command; PDF writes use page-based credits. Every account gets 80 free credits a month, with plans and packs for more.
macOS · Linux
brew install jetformat/tap/jetformatmacOS · Linux · Windows · Node.js 18+
npm install -g jetformatVersion 0.1.8. Extract and put jetformat on PATH.
Any shell
jetformat --version
jetformat word to-pdf report.docx -o report.pdf