multibackground

Use multiple pages as backgrounds

Usage

pdftl <input> multibackground <background_pdf> [<page_spec>...] [layer_name <name>] output <file>

Details

Underlay pages from the background PDF behind the corresponding pages in the input PDF: page 1 is placed behind page 1 of the input, etc.

If no page specs are given, the operation applies to all pages. Page specs use the same syntax as rotate and cat — see pdftl help page_specs.

Note: If the overlay/background PDF contains its own internal layers (OCGs), they will be flattened and merged into the page content. Individual toggleability of the source’s internal layers is not preserved.

Examples

Multi-page background

pdftl in.pdf multibackground bgs.pdf output out.pdf

Apply multi-page background to pages 1, 3, and 5 only

pdftl in.pdf multibackground bgs.pdf 1,3,5 output out.pdf

Tags: in_place, overlay, layer

Source: pdftl.operations.overlay

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

Type: Operation