HomeUniDoc
...

Package unipdf

Overview ▾

Package unipdf is a comprehensive PDF library for Go (golang). The library has advanced capabilities for generating, processing and modifying PDFs. UniPDF is written and supported by the owners of the FoxyUtils.com website, where the library is used to power many of the PDF services offered.

Getting More Information

Check out the Getting Started and Example sections, which showcase how to install unipdf and provide numerous examples of using unipdf to generate, process or modify PDF files. https://unidoc.io/examples/getting_started/

The GoDoc for unipdf provides a detailed breakdown of the API and documentation for packages, types and methods. https://godoc.org/github.com/unidoc/unipdf

Overview of Major Packages

The API is composed of a few major packages:

- common: Provides common shared types such as Logger and utilities to check
  license validity.

- core: The core package defines the primitive PDF object types and handles
  the file reading I/O and parsing the primitive objects.

- model: The model package builds on the core package, to represent the PDF as
  a structured model of the PDF primitive types. It has a reader and a writer to
  read and process a PDF file based on the structured model. This serves as a basis
  to perform a number of numerous tasks and can be used to work with a PDF in a
  medium to high level interface, although it does require an understanding of the
  PDF format and structure.

- creator: The PDF creator makes it easy to create new PDFs or modify existing
  PDFs. It can also enable loading a template PDF, adding text/images and
  generating an output PDF. It can be used to add text, images, and generate text
  and graphical reports. It is designed with simplicity in mind, with the goal of
  making it easy to create reports without needing any knowledge about the PDF
  format or specifications.

- extractor: Package extractor is used for quickly extracting PDF content
  through a simple interface. Currently offers functionality for extracting textual
  content.

Index ▾

Package files

doc.go

Subdirectories

Name Synopsis
..
annotator Package annotator provides an interface for creating annotations with appearance streams.
common Package common contains common properties used by the subpackages.
license Package license helps manage commercial licenses and check if they are valid for the version of unipdf used.
contentstream Package contentstream provides functionality for parsing and creating content streams for PDF files.
draw Package draw has handy features for defining paths which can be used to draw content on a PDF page.
core Package core defines and implements the primitive PDF object types in golang, and provides functionality for parsing those from a PDF file stream.
security
crypt
creator Package creator is used for quickly generating pages and content with a simple interface.
extractor Package extractor is used for quickly extracting PDF content through a simple interface.
fdf Package fdf provides support for loading form field data from Form Field Data (FDF) files.
fjson Package fjson provides support for loading PDF form field data from JSON data/files.
model Package model provides an interface for working with high-level objects (models) in PDF files, including reading and writing documents.
mdp
optimize
tests Package tests provides integration tests for the UniPDF optimizer.
pdfa Package pdfa provides abstraction to optimize and verify documents with respect to the PDF/A standards.
sighandler Package sighandler implements digital signature handlers for PDF signature validation and signing.
sigutil
xmputil Package xmputil provides abstraction used by the pdf document XMP Metadata.
pdfaextension
pdfaid
pdfutil
ps Package ps implements various functionalities needed for handling Postscript for PDF uses, in particular for PDF function type 4.
redactor
render
sanitize
textshaping
v3 Package unipdf is a comprehensive PDF library for Go (golang).
annotator Package annotator provides an interface for creating annotations with appearance streams.
common Package common contains common properties used by the subpackages.
license Package license helps manage commercial licenses and check if they are valid for the version of unipdf used.
contentstream Package contentstream provides functionality for parsing and creating content streams for PDF files.
draw Package draw has handy features for defining paths which can be used to draw content on a PDF page.
core Package core defines and implements the primitive PDF object types in golang, and provides functionality for parsing those from a PDF file stream.
security
crypt
creator Package creator is used for quickly generating pages and content with a simple interface.
extractor Package extractor is used for quickly extracting PDF content through a simple interface.
fdf Package fdf provides support for loading form field data from Form Field Data (FDF) files.
fjson Package fjson provides support for loading PDF form field data from JSON data/files.
model Package model provides an interface for working with high-level objects (models) in PDF files, including reading and writing documents.
mdp
optimize
tests Package tests provides integration tests for the UniPDF optimizer.
pdfa Package pdfa provides abstraction to optimize and verify documents with respect to the PDF/A standards.
sighandler Package sighandler implements digital signature handlers for PDF signature validation and signing.
sigutil
xmputil Package xmputil provides abstraction used by the pdf document XMP Metadata.
pdfaextension
pdfaid
pdfutil
ps Package ps implements various functionalities needed for handling Postscript for PDF uses, in particular for PDF function type 4.
render