A PDF processor written in Go.
View the Project on GitHub pdfcpu/pdfcpu
Get the latest binary here.
Required go version for building: go1.20 and up
$ git clone https://github.com/pdfcpu/pdfcpu
$ cd pdfcpu/cmd/pdfcpu
$ go install
$ pdfcpu version
$ go install github.com/pdfcpu/pdfcpu/cmd/pdfcpu@latest
$ brew install pdfcpu
$ pdfcpu version
(maybe not current)
$ sudo dnf install golang-github-pdfcpu
$ pdfcpu version
$ docker build -t pdfcpu .
# mount current host folder into container as /app to process files in the local host folder
$ docker run -it -v "$(pwd)":/app pdfcpu validate a.pdf