Jetformat

Protect a PDF with a user password

Use jetformat pdf encrypt to protect a PDF with a user password.

By Jetformat

Write a separate encrypted output and store the password through your usual secure process. Example passwords in documentation are placeholders.

Steps

  1. Start with a local PDF. Replace the sample paths and identifiers with your own.
  2. Run the command below. Save to a new output path so the source remains available for comparison.
  3. Check the result as described below before using it in another job.
jetformat pdf encrypt book.pdf --user secret -o locked.pdf

Options for this task

Option Meaning
--output Output PDF path (required)
--owner Owner password; defaults to the user password
--user User password (required)

Check the result

Open the output with the expected password and inspect its encryption state with pdf info.

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 encrypt --help to compare options with your installed version.

See the pdf command reference for the surrounding workflow.

Last updated