pdfjoin 命令详解

| 选择喜欢的代码风格  

A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

pdfjoin 命令安装:


-bash/zsh: pdfjoin command not not found

# Windows (WSL2)
sudo apt-get update sudo apt-get install texlive-extra-utils

# Debian
apt-get install texlive-extra-utils

# Ubuntu
apt-get install texlive-extra-utils

# Arch Linux
pacman -S texlive-core

# Kali Linux
apt-get install texlive-extra-utils

# Fedora
dnf install texlive-pdfjam-bin-6

# Raspbian
apt-get install texlive-extra-utils

pdfjoin 命令补充说明:


pdfjoin 将多个可移植文档格式 (PDF) 文件的页面合并为一个文件。

pdfjoin 是 PDFjam 的一个简单包装器,它为 pdflatex 提供了 pdfpages 软件包的许多功能的前端。需要安装 pdflatex 和 pdfpages 软件包。

pdfjoin 命令语法:


pdfjoin [options] input_files...

pdfjoin 命令选项:


-o outfile, --outfile outfile
    Specifies the name of the output PDF file. If not provided, a default name like 'merged.pdf' or based on the first input file is used.

--rotatepages direction
    Rotates all pages in the output PDF by a specified direction (e.g., 90, 180, 270, 'left', 'right', 'down').

--fitpaper
    Adjusts the paper size of the output document to fit the size of the input pages. Useful for combining PDFs with different dimensions.

--keepinfo
    Attempts to preserve PDF information such as forms, links, and outlines. Note that LaTeX re-rendering might still affect some properties.

--paper size, --papersize size
    Sets the paper size for the output document (e.g., 'a4paper', 'letterpaper', 'a3', 'a5').

--landscape, --portrait
    Forces the output document's orientation to landscape or portrait, overriding default page orientations.

--nup num
    Arranges num input pages onto a single output page (N-up imposition). For example, '--nup 2x1' puts two pages side-by-side.

--suffix suffix, --prefix prefix
    Adds a suffix or prefix to the output filename when processing multiple input files or if '--batch' is used.

--parms parameters
    Passes additional parameters directly to the underlying pdfpages LaTeX package. This offers fine-grained control.

--verbose, -v
    Displays more detailed information during processing.

--quiet, -q
    Suppresses most output messages.

--version
    Displays the version information of pdfjoin.

--help
    Displays a help message with command-line options.

pdfjoin 命令实例:


pdfjoin 将两个 PDF 合并为一个,并使用默认后缀 joined

pdfjoin path/to/file1.pdf path/to/file2.pdf

pdfjoin 将每个给定文件的第一页合并在一起:

pdfjoin path/to/file1.pdf path/to/file2.pdf ... 1 --outfile output_file

pdfjoin 将第 3 页至第 5 页以及第 1 页保存为具有自定义后缀的新 PDF:

pdfjoin path/to/file.pdf 3-5,1 --suffix rearranged

pdfjoin 合并两个 PDF 的页面子范围:

pdfjoin {/path/to/file1.pdf 2- file2 last-3 --outfile output_file

pdfjoin 命令扩展阅读:


 

CommandNotFound ⚡️ 坑否 - 其他频道扩展阅读:




pdfjoin 命令评论