unipdf

command module
v3.0.0-...-55e877b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 29, 2023 License: GPL-2.0 Imports: 4 Imported by: 0

README

UniPDF - PDF for Go

UniDoc UniPDF is a PDF library for Go (golang) with capabilities for creating and reading, processing PDF files. The library is written and supported by FoxyUtils.com, where the library is used to power many of its services.

GitHub (pre-)release ApiDocs

Features

Multiple examples are provided in our example repository https://github.com/unidoc/unipdf-examples.

Contact us if you need any specific examples.

Installation

With modules:

go get gitee.com/unidoc/unipdf/v3

License key

和谐版不需要license key,正版需要license key,点击获取license key

This software package (unipdf) is a commercial product and requires a license code to operate.

To Get a Metered License API Key in for free in the Free Tier, sign up on https://cloud.unidoc.io

How can I convince myself and my boss to buy unipdf rather using a free alternative?

The choice is yours. There are multiple respectable efforts out there that can do many useful things.

In UniDoc, we work hard to provide production quality builds taking every detail into consideration and providing excellent support to our customers. See our testimonials for example.

Security. We take security very seriously and we restrict access to github.com/unidoc/unipdf repository with protected branches and only the founders have access and every commit is reviewed prior to being accepted.

The profits are invested back into making unipdf better. We want to make the best possible product and in order to do that we need the best people to contribute. A large fraction of the profits made goes back into developing unipdf. That way we have been able to get many excellent people to work and contribute to unipdf that would not be able to contribute their work for free.

Contributing

If you are interested in contributing, please contact us.

Support and consulting

Please email us at support@unidoc.io for any queries.

If you have any specific tasks that need to be done, we offer consulting in certain cases. Please contact us with a brief summary of what you need and we will get back to you with a quote, if appropriate.

License agreement

The use of this software package is governed by the end-user license agreement (EULA) available at: https://unidoc.io/eula/

Documentation

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.

Directories

Path Synopsis
Package annotator provides an interface for creating annotations with appearance streams.
Package annotator provides an interface for creating annotations with appearance streams.
Package common contains common properties used by the subpackages.
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.
Package license helps manage commercial licenses and check if they are valid for the version of unipdf used.
Package contentstream provides functionality for parsing and creating content streams for PDF files.
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.
Package draw has handy features for defining paths which can be used to draw content on a PDF page.
Package core defines and implements the primitive PDF object types in golang, and provides functionality for parsing those from a PDF file stream.
Package core defines and implements the primitive PDF object types in golang, and provides functionality for parsing those from a PDF file stream.
Package creator is used for quickly generating pages and content with a simple interface.
Package creator is used for quickly generating pages and content with a simple interface.
Package extractor is used for quickly extracting PDF content through a simple interface.
Package extractor is used for quickly extracting PDF content through a simple interface.
Package fdf provides support for loading form field data from Form Field Data (FDF) files.
Package fdf provides support for loading form field data from Form Field Data (FDF) files.
Package fjson provides support for loading PDF form field data from JSON data/files.
Package fjson provides support for loading PDF form field data from JSON data/files.
internal
Package model provides an interface for working with high-level objects (models) in PDF files, including reading and writing documents.
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.
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.
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.
Package sighandler implements digital signature handlers for PDF signature validation and signing.
xmputil
Package xmputil provides abstraction used by the pdf document XMP Metadata.
Package xmputil provides abstraction used by the pdf document XMP Metadata.
Package ps implements various functionalities needed for handling Postscript for PDF uses, in particular for PDF function type 4.
Package ps implements various functionalities needed for handling Postscript for PDF uses, in particular for PDF function type 4.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL