Documentation

Install gopdfrab

Add the gopdfrab PDF/A library to your Go module with go get, and install the CLI with go install.

gopdfrab is a pure-Go module with no CGo and no runtime dependencies, so installing it is a go get and nothing else — no native library to package alongside your binary, no shared object to find at startup. It builds anywhere the Go toolchain does, including GOOS=js GOARCH=wasm.

terminal
go get github.com/voidrab/gopdfrab

The command-line tool lives in the same module and installs separately. It is the same engine as the library, linked into a single static binary of about 12.3 MB — see the CLI reference for its flags and exit codes.

terminal
go install github.com/voidrab/gopdfrab/cmd/gopdfrab@latest

The API is stable as of 1.0. With that done, the next step is opening a document.