pdfcpu

Logo

A PDF processor written in Go.

View the Project on GitHub pdfcpu/pdfcpu


Changelog

Poster


Usage

pdfcpu poster [-p(ages) selectedPages] -- description inFile outDir [outFileName]


Flags

name description required
p(ages) selected pages no


Common Flags

name description values
v(erbose) turn on logging  
vv verbose logging  
q(uiet) quiet mode  
-o(ffline) disable http traffic  
c(onf) config dir $path, disable
opw owner password  
upw user password  
u(nit) display unit po(ints),in(ches),cm,mm


Arguments

name description required
description configuration string yes
inFile PDF input file yes
outDir output directory yes
outFileName PDF output file name no


Description

parameter description values
scalefactor enlarge poster > 1.0
formsize Paper to be used. Append L or P to enforce landscape/portrait mode paper size
dimensions dimensions in display units eg. ‘400 200’
margin margin / glue area in display units >= 0.0
bgcolor margin / glue area color value color
border draw content region border along set margin on/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 -u cm -- "dim:15 10, margin:1, border:on" test.pdf .
cut test.pdf into ./ ...
writing test_page_1.pdf