By Jetformat
Pass a local HTML file, static directory, or deployed URL. This beta command needs a separate renderer service; use a directory when CSS, fonts, or images are local assets.
Steps
- Start with a local HTML source. Replace the sample paths and identifiers with your own.
- Run the command below. Save to a new output path so the source remains available for comparison.
- Check the result as described below before using it in another job.
jetformat html to-pdf ./report-site -o report.pdf --page-size A4
Options for this task
| Option | Meaning |
|---|---|
--landscape |
Use landscape pages |
--output |
Output PDF path; local files default to the same basename with .pdf |
--page-size |
Page size, for example A4, Letter, or A3 |
--server |
Jetformat HTML renderer address; defaults to JETFORMAT_HTML_SERVER or 127.0.0.1:8080 |
--timeout |
Page render timeout, for example 30s |
--wait |
Time to wait for page resources or JavaScript, for example 2s |
--wait-ready |
Wait until a selector exists; may be repeated |
--wait-visible |
Wait until a selector is visible; may be repeated |
Check the result
Run pdf info and inspect a rendered page, checking that required assets and asynchronous content were ready at capture time.
Notes and limits
This operation uses page-based credits. Review the billing guide before processing a large document.
The examples keep the original file. Add --force only when you intend to overwrite an existing output. Run jetformat html to-pdf --help to compare options with your installed version.
See the html command reference for the surrounding workflow.