← 返回命令列表

Linux command

pdfjam 命令

文件

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

常用示例

Combine PDFs

pdfjam [file1.pdf] [file2.pdf] -o [output.pdf]

Select pages

pdfjam [input.pdf] [1,3,5-7] -o [output.pdf]

Rotate pages

pdfjam --angle [90] [input.pdf] -o [output.pdf]

Two pages per sheet

pdfjam --nup 2x1 [input.pdf] -o [output.pdf]

Scale pages

pdfjam --scale [0.8] [input.pdf] -o [output.pdf]

Set paper size

pdfjam --paper [a4paper] [input.pdf] -o [output.pdf]

Landscape orientation

pdfjam --landscape [input.pdf] -o [output.pdf]

说明

pdfjam manipulates PDF pages using LaTeX and pdfpages. It combines, rearranges, and transforms PDF documents. Page selection uses ranges like 1-5 or lists like 1,3,5. Negative numbers count from the end. N-up printing places multiple pages on one sheet. Common layouts are 2x1, 2x2, and 3x3. Rotation handles landscape documents or corrects orientation. Any angle is supported. Scaling adjusts page size. Combined with paper size, this enables fitting to different formats. Output defaults to modified input name. Suffix option adds to original filename.

参数

-o, --outfile _FILE_
Output filename.
--nup _COLxROW_
Pages per sheet.
--angle _DEGREES_
Rotation angle.
--scale _FACTOR_
Scale factor.
--paper _SIZE_
Paper size.
--landscape
Landscape orientation.
--frame _true|false_
Frame around pages.
--delta _X Y_
Offset adjustment.
--offset _X Y_
Page offset.
--suffix _STRING_
Output filename suffix.

FAQ

What is the pdfjam command used for?

pdfjam manipulates PDF pages using LaTeX and pdfpages. It combines, rearranges, and transforms PDF documents. Page selection uses ranges like 1-5 or lists like 1,3,5. Negative numbers count from the end. N-up printing places multiple pages on one sheet. Common layouts are 2x1, 2x2, and 3x3. Rotation handles landscape documents or corrects orientation. Any angle is supported. Scaling adjusts page size. Combined with paper size, this enables fitting to different formats. Output defaults to modified input name. Suffix option adds to original filename.

How do I run a basic pdfjam example?

Run `pdfjam [file1.pdf] [file2.pdf] -o [output.pdf]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -o, --outfile _FILE_ do in pdfjam?

Output filename.