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 actively developed and maintained on GitHub and is released under the GPL-3.0 license.
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
Development
The project welcomes contributions and maintains clear guidelines for potential contributors. The codebase includes comprehensive test coverage and follows Go best practices.
The source code is available on github.com/seehuhn/go-pdf.
Source Code
View on GitHub: seehuhn/go-pdf