pdfcpu

Logo

PDF tooling for Go and the command line.

View the Project on GitHub pdfcpu/pdfcpu


Changelog
Future Directions

Poster


Usage

pdfcpu poster description inFile outDir [ outFile] [flags]

Flags

namedescriptionrequired
p(ages)selected pagesno

Common Flags


Arguments

namedescriptionrequired
descriptionconfiguration stringyes
inFilePDF input file, use - to read from stdinyes
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





Create poster tile PDFs from a streamed PDF in a container work directory:

$ aws s3 cp s3://acme-print/storefront-poster.pdf - \
   | pdfcpu poster 'form:A4, margin:1, border:on' - /work/poster-tiles -u cm