Skip to content

PDF Commands

compress

Compress PDF files to reduce file size.

max pdf compress <input> [-q QUALITY] [-o OUTPUT]

merge

Merge multiple PDF files into one.

max pdf merge <file1> <file2> ...

split

Split PDF into separate pages.

max pdf split <input> [-o OUTPUT_DIR]

ocr

Extract text from PDF using OCR.

max pdf ocr <input> [-o OUTPUT] [-l LANGUAGE]

Options: - -l, --language - Language code (eng, spa, fra, etc.)

watermark

Add watermark to PDF pages.

max pdf watermark <input> <watermark_image> [-o OUTPUT]

password

Protect PDF with password.

max pdf password <input> --owner <password> --user <password>