go-pdf
A Go library for reading and writing PDF files
Introduction
go-pdf is a comprehensive Go library that provides support for reading and writing PDF files. The library is designed to handle various aspects of PDF manipulation, from basic document creation to advanced features like encryption and form handling.
The library is under active development. The source code is hosted on GitHub and is released under the GPL-3.0 license. The API is not yet stable, breaking changes still occur from time to time.
Key Features
- Document Management: Core functionality for creating and manipulating PDF documents
- Graphics & Content: Tools for rendering graphics and managing page content
- Font Support: Comprehensive font handling capabilities
- Reader/Writer Operations: Dedicated modules for both parsing existing PDFs and generating new ones
- Advanced Features: Support for annotations, outlines, metadata, destinations, and form actions
- Security: Cryptographic functionality for encrypted PDFs
- Resource Management: Efficient handling of PDF resources and references
Installation
To install go-pdf, use the standard Go tooling:
go get github.com/seehuhn/go-pdf
Usage
The library provides a comprehensive API for working with PDF files. Documentation is available on pkg.go.dev and through the command line:
go doc github.com/seehuhn/go-pdf
Source Code
View on GitHub: seehuhn/go-pdf