pdfcpu

Logo

A PDF processor written in Go.

View the Project on GitHub pdfcpu/pdfcpu


Changelog

API Installation

Use pdfcpu as a Go library.


Install

go get github.com/pdfcpu/pdfcpu@latest

Usage

Import the API package:

import "github.com/pdfcpu/pdfcpu/pkg/api"

Example:

package main

import (
    "log"

    "github.com/pdfcpu/pdfcpu/pkg/api"
)

func main() {
    if err := api.ValidateFile("input.pdf", nil); err != nil {
        log.Fatal(err)
    }
}

Documentation