pdftk

package
v7.10.2 Latest Latest
Warning

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

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

Documentation

Overview

Package pdftk provides an implementation of the gotenberg.PdfEngine interface using the PDFtk command-line tool. This package allows for the merging of PDF files but does not support conversion to specific PDF formats. The path to the PDFtk binary must be specified using the PDFTK_BIN_PATH environment variable.

See: https://gitlab.com/pdftk-java/pdftk.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PdfTk added in v7.10.0

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

PdfTk abstracts the CLI tool PDFtk and implements the gotenberg.PdfEngine interface.

func (*PdfTk) Convert added in v7.10.0

func (engine *PdfTk) Convert(ctx context.Context, logger *zap.Logger, formats gotenberg.PdfFormats, inputPath, outputPath string) error

Convert is not available in this implementation.

func (*PdfTk) Descriptor added in v7.10.0

func (engine *PdfTk) Descriptor() gotenberg.ModuleDescriptor

Descriptor returns a PdfTk's module descriptor.

func (*PdfTk) Merge added in v7.10.0

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

Merge combines multiple PDFs into a single PDF.

func (*PdfTk) Metrics added in v7.10.0

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

Metrics returns the metrics.

func (*PdfTk) Provision added in v7.10.0

func (engine *PdfTk) Provision(ctx *gotenberg.Context) error

Provision sets the modules properties.

func (*PdfTk) Validate added in v7.10.0

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