inject
Inject code at start or end of page content streams
Usage
pdftl
<input>inject<injection_spec>...output<file>[<option...>]
Details
Add PDF code <code> at head or tail of page content streams for pages.
<injection_spec> = [<spec>...] (head|tail) <code>
where <spec> is a page specification (default: all pages),
and <code> is a PDF content stream fragment to instead at
either the head or tail of those pages’ streams.
Warning: This can easily break content streams. The resulting PDF files will not render as expected.
Examples
Scale up page content by 2x:
pdftl in.pdf inject head '2 0 0 2 0 0 cm' output out.pdf
Tags: in_place, dangerous, content_stream
Source: pdftl.operations.inject
Read online: https://pdftl.readthedocs.io/en/stable/operations/inject.html
Type: Operation