
PDF/A for Go
Verify and convert PDFs to PDF/A-1b and PDF/A-2b.
As a library, a CLI, or right here in your browser.
gopdfrab · runs in your browser
- check
- fix
- download
terminal
$ gopdfrab verify --profile pdfa2b invoice.pdfFAIL issues=5 invoice.pdf 6.1.3/1 trailer does not contain the required ID keyword 6.2.4.3 device colour (rgb) used without matching OutputIntent 6.2.11.4.1/1 font Helvetica is not embedded 6.2.11.4.1/1 font Helvetica-Bold is not embedded 6.6.2.1/1 document catalog lacks a Metadata entrysummary: pass=0 fail=1 error=0 files=1$ gopdfrab convert --profile pdfa2b invoice.pdf invoice-a2b.pdfoutput: invoice-a2b.pdfiterations: 3result: conformant$ gopdfrab verify --profile pdfa2b invoice-a2b.pdfPASS invoice-a2b.pdfsummary: pass=1 fail=0 error=0 files=1
main.go
doc, _ := gopdfrab.Open("invoice.pdf")
defer doc.Close()
v, _ := doc.Verify(gopdfrab.PDFA2B)
for _, issue := range v.Issues {
fmt.Println(issue)
}
cr, _ := doc.Convert(gopdfrab.PDFA2B)
defer cr.Close()
cr.Save("invoice-a2b.pdf")The browser demo runs gopdfrab as WebAssembly. Your file never leaves your device.
## Standards-proven
Meets the industry standard and goes beyond it.
## Runs anywhere Go runs
Available as a Go package, a single CLI binary, and WebAssembly.
## Fast
Over 10× faster than comparable PDF/A validators. Benchmarks →