By Jetformat
The command adds a yellow rectangle at explicit coordinates. It does not search for a word or calculate the bounding box of matching text.
Steps
- Start with a local PDF. 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 pdf highlight book.pdf --page 1 --x 72 --y 72 --width 120 --height 16 -o hl.pdf
Options for this task
| Option | Meaning |
|---|---|
--height |
Height in pt (default 16) |
--output |
Output PDF path (required) |
--page |
1-based page number (default 1) |
--width |
Width in pt (default 120) |
--x |
Lower-left X in pt (default 72) |
--y |
Lower-left Y in pt (default 72) |
Check the result
Render the selected page and check that the rectangle marks the intended line without covering adjacent content.
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 pdf highlight --help to compare options with your installed version.
See the pdf command reference for the surrounding workflow.