pdfcpu

PDF processor for reading, writing, and manipulating PDF files

brewmacoslinux
Try with needOr install directly
Source

About

PDF processor written in Go

Commands

pdfcpu

Examples

Merge multiple PDF files into a single document$ pdfcpu merge -o output.pdf input1.pdf input2.pdf input3.pdf
Extract specific pages from a PDF file$ pdfcpu extract -pages 1-5,10 input.pdf extracted.pdf
Compress a PDF file to reduce its size$ pdfcpu optimize input.pdf output.pdf