pdfcpu

Logo

A PDF processor written in Go.

View the Project on GitHub pdfcpu/pdfcpu


Changelog

Poster


Usage

pdfcpu poster description inFile outDir [ outFile] [flags]

Flags

namedescriptionrequired
p(ages)selected pagesno

Common Flags


Arguments

namedescriptionrequired
descriptionconfiguration stringyes
inFilePDF input fileyes
outDiroutput directoryyes
outFileNamePDF output file nameno

Description

parameterdescriptionvalues
scalefactorenlarge poster> 1.0
formsizePaper to be used. Append L or P to enforce landscape/portrait modepaper size
dimensionsdimensions in display unitseg. ‘400 200’
marginmargin / glue area in display units>= 0.0
bgcolormargin / glue area color valuecolor
borderdraw content region border along set marginon/off, true/false, t/f

Examples

Page format is A2, the printer supports A4.
Generate a poster(A2) via a corresponding 2x2 grid of A4 pages:

$ pdfcpu poster 'f:A4' test.pdf .
cut test.pdf into ./ ...
writing test_page_1.pdf




Page format is A2, the printer supports A4.
Generate a poster(A0) via a corresponding 4x4 grid of A4 pages:

$ pdfcpu poster 'f:A4, scale:2.0' test.pdf .
cut test.pdf into ./ ...
writing test_page_1.pdf

Generate a poster via a corresponding grid with cell size 15x10 cm and provide a glue area of 1 cm:

$ pdfcpu poster 'dim:15 10, margin:1, border:on' test.pdf . -u cm
cut test.pdf into ./ ...
writing test_page_1.pdf