pdfcpu

Logo

A PDF processor written in Go.

View the Project on GitHub pdfcpu/pdfcpu


Changelog

N-down


Usage

pdfcpu ndown [ description ] n inFile outDir [ outFile ] [flags]

Flags

namedescriptionrequired
p(ages)selected pagesno

Common Flags


Arguments

namedescriptionrequired
descriptionconfiguration stringno
nthe N-down valueyes
inFilePDF input fileyes
outDiroutput directoryyes
outFileNamePDF output file nameno

N-down Value

The following table lists all supported values for n and the resulting poster tile layout with respect to the orientation of the chosen output paper size.

valueportraitlandscapeExample
21x22x1A1 -> 2 x A2
31x33x1
42x22x2A1 -> 4 x A3
82x44x2A1 -> 8 x A4
93x33x3
123x44x3
164x44x4A1 -> 16 x A5

Description

A configuration string to specify the details of the grid layout.

parameterdescriptionvalues
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

The page format is A2, the printer supports A3.
Quick cut a page into 2 equally sized pages.
Results in a PDF containing 3 pages for each processed page:

$ pdfcpu ndown 2 test.pdf .
cut test.pdf into ./ ...
writing test_page_1.pdf




The page format is A2, the printer supports A4.
Quick cut page into 4 equally (A4) sized pages.
Results in a PDF containing 5 pages for each processed page:

$ pdfcpu ndown 4 test.pdf .
cut test.pdf into ./ ...
writing test_page_1.pdf




The page format is A2, the printer supports A4.
Quick cut page into 4 equally (A4) sized pages and provide a dark gray glue area of 1 cm.
Results in a PDF containing 5 pages for each processed page:

$ pdfcpu ndown 'margin:1, bgcol:DarkGray, border:on' 4 test.pdf . -u cm
cut test.pdf into ./ ...
writing test_page_1.pdf