pdftk

package
v7.3.1 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package pdftk provides a module which abstracts the CLI tool PDFtk and implements the gotenberg.PDFEngine interface.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PDFtk

type PDFtk struct {
	// contains filtered or unexported fields
}

PDFtk abstracts the CLI tool PDFtk and implements the gotenberg.PDFEngine interface.

func (PDFtk) Convert

func (engine PDFtk) Convert(_ context.Context, _ *zap.Logger, format, _, _ string) error

Convert is not available for this PDF engine.

func (PDFtk) Descriptor

func (PDFtk) Descriptor() gotenberg.ModuleDescriptor

Descriptor returns a PDFtk's module descriptor.

func (PDFtk) Merge

func (engine PDFtk) Merge(ctx context.Context, logger *zap.Logger, inputPaths []string, outputPath string) error

Merge merges the given PDFs into a unique PDF.

func (PDFtk) Metrics added in v7.1.0

func (engine PDFtk) Metrics() ([]gotenberg.Metric, error)

Metrics returns the metrics.

func (*PDFtk) Provision

func (engine *PDFtk) Provision(_ *gotenberg.Context) error

Provision sets the modules properties. It returns an error if the environment variable PDFTK_BIN_PATH is not set.

func (PDFtk) Validate

func (engine PDFtk) Validate() error

Validate validates the module properties.

Jump to

Keyboard shortcuts

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