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
$ brew install pdfcpu
$ pdfcpu version
$ sudo dnf install golang-github-pdfcpu
$ pdfcpu version
$ docker build -t pdfcpu .
# mount current folder into container to process local files
$ docker run -it --mount type=bind,source="$(pwd)",target=/app pdfcpu ./pdfcpu validate /app/pdfs/a.pdf