normalize

Reformat page content streams

Usage

pdftl <input> normalize [<spec>...] output <output>

Details

The normalize operation formats page content streams for readability. This results in the content stream appearing with one PDF content operator per line.

To see the effect of this operation in the PDF file (for example, to examine a content stream in order to come up with a regular expression to use in the replace operation) you should pass the uncompress option to avoid compression of the page content stream.

The <spec> specification defines the pages on which to perform this operation. See the help topic [[page_specs]].

Examples

Normalize the content streams for pages 1-3, with uncompressed output

pdftl in.pdf normalize 1-3 output out.pdf uncompress

Tags: in_place

Source: pdftl.operations.normalize

Read online: https://pdftl.readthedocs.io/en/stable/operations/normalize.html

Type: Operation