← 返回命令列表

Linux command

pdfbook2 命令

文件

复制后可按需替换文件名、目录或参数。

常用示例

Example

pdfbook2 [path/to/file.pdf]

Example

pdfbook2 -p a4paper [path/to/file.pdf]

Example

pdfbook2 -p a4paper -i 50 [path/to/file.pdf]

Example

pdfbook2 -p a4paper --signature 24 [path/to/file.pdf]

说明

pdfbook2 creates printable booklets from PDF files by rearranging pages into printer spreads. The output is designed for double-sided printing in landscape mode with long-edge flipping, resulting in a booklet that can be folded and bound. For larger documents, the signature option divides the booklet into smaller sections (signatures) that can be nested and bound together. Each signature must contain a number of pages divisible by 4.

参数

-p, --paper _size_
Set paper size (a4paper, letterpaper, etc.)
-s, --short-edge
Use short-edge binding (default is long-edge)
-n, --no-crop
Do not crop pages before reassembling
-o, --outer-margin _pixels_
Set outer margin (default: 40)
-i, --inner-margin _pixels_
Set inner margin (default: 150)
-t, --top-margin _pixels_
Set top margin (default: 30)
-b, --bottom-margin _pixels_
Set bottom margin (default: 30)
--signature _num_
Number of pages per signature (must be divisible by 4)
--signature\* _num_
Same as --signature but allow incomplete last signature
-h, --help
Display help message

FAQ

What is the pdfbook2 command used for?

pdfbook2 creates printable booklets from PDF files by rearranging pages into printer spreads. The output is designed for double-sided printing in landscape mode with long-edge flipping, resulting in a booklet that can be folded and bound. For larger documents, the signature option divides the booklet into smaller sections (signatures) that can be nested and bound together. Each signature must contain a number of pages divisible by 4.

How do I run a basic pdfbook2 example?

Run `pdfbook2 [path/to/file.pdf]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -p, --paper _size_ do in pdfbook2?

Set paper size (a4paper, letterpaper, etc.)