pdfly

Extract metadata and manipulate PDF files from the command line

brewmacoslinux
Try with needOr install directly
Source

About

CLI tool to extract (meta)data from PDF and manipulate PDF files

Commands

pdfly

Examples

Extract metadata from a PDF file$ pdfly meta document.pdf
Merge multiple PDF files into one$ pdfly cat input1.pdf input2.pdf -o output.pdf
Extract specific pages from a PDF$ pdfly extract document.pdf -p 1,3,5 -o extracted.pdf