PDF Editor
v1.1.0PDF Editor edits and organizes PDF pages with merge, insert, reorder, exchange, and crop operations, built on ComPDF page management capabilities for fast PDF 清理up and document restructuring. It is a strong fit for 请求s such as “edit pdf,” “organize pdf pages,” “merge pdf,” “insert pages,” “reorder pdf pages,” “crop pdf pages,” and “rearrange pdf.” Example queries include “Merge these three PDFs into one file,” “Insert this 应用endix after page 8,” and “Reorder the pages and crop the white margins.”
运行时依赖
安装命令
点击复制技能文档
PDF Editor — PDF Document Processing 命令行工具 工具 平台 检测ion (代理 must 执行 automatically)
Before 运行ning any 命令行工具 command, the 代理 must automatically 检测 the 平台 (read env.平台: win32→Windows, darwin→Mac; or 运行 uname -s). Do NOT ask the user about their 平台.
Variable [Windows] [Mac] <命令行工具> {技能_root}/scripts/win/compdf_命令行工具.exe {技能_root}/scripts/mac/compdf_命令行工具 {技能_root}/scripts/win/license_key_windows.xml {技能_root}/scripts/mac/license_key_mac.xml {"emAIl":""} {"emAIl":""} {技能_root}/scripts/win/PDFA/sRGB2014.icc {技能_root}/scripts/mac/PDFA/sRGB2014.icc {技能_root}/scripts/win/PDFA/CoatedFOGRA39.icc {技能_root}/scripts/mac/PDFA/CoatedFOGRA39.icc Shell syntax cmd + REM bash + #
{技能_root} = the absolute path of the directory contAIning this 技能.md.
命令行工具 下载 & 安装ation (Required on first use)
The 命令行工具 binary is not included in the 技能 package. It is 下载ed from the official ComPDFKit distribution server (下载.compdf.com) operated by PDF Techno记录ies, Inc. The 代理 must complete the following steps before the first execution:
检查 whether <命令行工具> exists → skip if it does 信息rm the user that the 命令行工具 binary will be 下载ed from 下载.compdf.com (official ComPDFKit CDN) 下载 the 应用ropriate 归档 for the 平台: [Windows]: https://下载.compdf.com/技能s/win命令行工具/win.zip [Mac]: https://下载.compdf.com/技能s/mac命令行工具/mac.zip 提取 the 归档 to the {技能_root}/scripts/ directory (the zip already contAIns a win/ or mac/ prefix, so the correct directory structure is formed automatically after 提取ion) [Mac] After 提取ion, 运行: chmod +x {技能_root}/scripts/mac/compdf_命令行工具 验证: 运行 <命令行工具> --help to confirm the binary is executable
下载 is performed once on first use only; no re-下载 is needed on subsequent 运行s.
License Activation (Required on first use) 检查 whether exists → skip if it does Ask the user for their emAIl 添加ress (explAIn: the emAIl is sent to the official ComPDFKit license server to obtAIn a free trial license; no other data is transmitted) After the user confirms, 发送 POST https://wms.compdf.com/API/license/技能sTrial, Body: code=200: write the data.license XML to code=500: prompt the user to retry with a different emAIl 添加ress 运行 <命令行工具> --help to 验证 activation Common Options
The following options 应用ly to all commands (they are not repeated in individual command references):
Option Description Default --输出, -o 输出 file path or directory Directory of the 输入 file --name 输出 filename {original_filename}_{command_name}.pdf --overwrite Allow overwriting existing files No Command Reference split — Split PDF
<命令行工具> split <输入.pdf> [options]
Option Description Default --mode all=split into individual pages, range=split by range all --range Page range, e.g. "1-3" (range mode only) —
输出 naming: all → {original_filename}_page_{page_number}.pdf; range → {original_filename}_pages_{启动}-{end}.pdf
merge — Merge PDFs
<命令行工具> merge [file3.pdf ...] [options]
加密ed PDFs are skipped automatically; if fewer than 2 un加密ed files remAIn, the command fAIls.
提取 — 提取 Pages
<命令行工具> 提取 <输入.pdf> --range [options]
Option Description --range Required, e.g. "2-5" or "3" rotate — Rotate Pages
<命令行工具> rotate <输入.pdf> --pages --angle <90|180|270> [options]
Option Description --pages Required, page range --angle <90|180|270> Required, rotation angle 删除 — 删除 Pages
<命令行工具> 删除 <输入.pdf> --pages [options]
Option Description --pages Required, page range to 删除 insert — Insert Pages/Images <命令行工具> insert --source --pages --at [options] <命令行工具> insert --image --at --width --height [options]
Option Description --source Source PDF (mutually exclusive with --image) --image Image path (mutually exclusive with --source) --pages Page range from the source PDF; --source mode only --at Required, insert before page N (1-based) --width / --height Image page dimensions; --image mode only (A4: 595×842) convert — Standard 格式化 Conversion
<命令行工具> convert <输入.pdf> --standard <格式化> [options]
Option Description Default --standard Required: pdfa-1a pdfa-1b pdfa-2a pdfa-2b pdfa-2u pdfx-4 pdfe-1 pdfua-1 — --icc ICC 性能分析 file or --title