Package com.pd4ml.pdf.merge.cli
Class Pd4MergeCli
- java.lang.Object
-
- com.pd4ml.pdf.merge.cli.Pd4MergeCli
-
public final class Pd4MergeCli extends java.lang.ObjectCommand-line entry point forcom.pd4ml.pdf.merge: combine page ranges from one or more PDFs (each with its own optional password) into one output file, optionally encrypting it.Usage: pd4mergecli --in <file.pdf> [--password=<pw>] [--pages=<range>] [--in ... repeat per source ...] --out=<output.pdf> [--encrypt-user=<pw>] [--encrypt-owner=<pw>] [--encrypt-alg=RC4_128|AES_128|AES_256] [--permissions=<int>] --pages accepts a 1-based, comma-separated page-range spec: "2-5,8,10-12" explicit pages/ranges, in the order written "odd" / "even" every odd/even page of that source "6+" page 6 through the last page --pages may be omitted only when exactly one --in is given, meaning "every page of that document" (still decrypted, and re-encrypted if --encrypt-* is given) -- with two or more sources, every one needs its own --pages. Examples: pd4mergecli --in=A.pdf --pages=2-5,odd --in=B.pdf --password=secret --pages=1,3,6+ --out=merged.pdf pd4mergecli --in=protected.pdf --password=secret --out=plain.pdf pd4mergecli --in=A.pdf --out=locked.pdf --encrypt-user=open123 --encrypt-owner=owner456 --encrypt-alg=AES_256
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidmain(java.lang.String[] args)
-