By Jetformat
Create a new named field on a 1-based page. This adds a form control; use pdf fill when the field already exists.
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 add-text-field book.pdf --name Title --page 1 -o form.pdf
Options for this task
| Option | Meaning |
|---|---|
--height |
Height in pt (default 16) |
--name |
Form field name |
--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
Run pdf fields on the result and confirm the new name before filling it.
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 add-text-field --help to compare options with your installed version.
See the pdf command reference for the surrounding workflow.