
A PDF processor written in Go.
View the Project on GitHub pdfcpu/pdfcpu
Use pdfcpu as a Go library.
go get github.com/pdfcpu/pdfcpu@latest
Import the API package:
import "github.com/pdfcpu/pdfcpu/pkg/api"
Example:
package main
import (
"log"
"github.com/pdfcpu/pdfcpu/pkg/api"
)
func main() {
if err := api.ValidateFile("input.pdf", nil); err != nil {
log.Fatal(err)
}
}