changepdfstring(1p)

changepdfstring1p

Search and replace in pdf metadata

Usage

changepdfstring [options] infile.pdf search-str replace-str [outfile.pdf]

Options: -o --order preserve the internal PDF ordering for output -v --verbose print diagnostic messages -h --help verbose help message -V --version print CAM::PDF version

Overview

Searches through a PDF file's metadata for instances of "search-str" and inserts "replace-str". Note that this does not change the actual PDF page layout, but only interactive features, like forms and annotation. To change page layout strings, use instead changepagestring.

The "search-str" can be a literal string, or it can be a Perl regular expression by wrapping it in "regex(...)". For example:

  changepdfstring in.pdf 'regex(CAM-PDF-(\d.\d+))' 'version=$1' out.pdf

Releases

6 releases since Debian 8 (Jessie); the text changed 2 times.

  1. 8
  2. 9–11
  3. 12–13

Author

See CAM::PDF

From libcam-pdf-perl 1.60-5 in Debian 13 (Trixie). Parsed by carta from the page's man source.