A PDF processor written in Go.
View the Project on GitHub pdfcpu/pdfcpu
Create a poster for the selected page using given paper size or dimensions which may be scaled.
Print large PDFs as poster using available paper size.
The poster for each selected page is packaged into a PDF file in outDir containing an outline view followed by pages representing the poster tiles.
Have a look at some examples.
pdfcpu poster [-p(ages) selectedPages] -- description inFile outDir [outFileName]
name | description | required |
---|---|---|
p(ages) | selected pages | no |
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 |
name | description | required |
---|---|---|
description | configuration string | yes |
inFile | PDF input file | yes |
outDir | output directory | yes |
outFileName | PDF output file name | no |
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 |
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