pdfengine

package
v7.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2021 License: MIT Imports: 5 Imported by: 1

Documentation

Overview

Package pdfengine provides a module which abstracts the CLI tool unoconv and implements the gotenberg.PDFEngine interface.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UnoconvPDFEngine

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

UnoconvPDFEngine abstracts the CLI tool unoconv and implements the gotenberg.PDFEngine interface.

func (UnoconvPDFEngine) Convert

func (engine UnoconvPDFEngine) Convert(ctx context.Context, logger *zap.Logger, format, inputPath, outputPath string) error

Convert converts the given PDF to a specific PDF format. Currently, only the PDF/A-1 format is available. If another PDF format is requested, it returns a gotenberg.ErrPDFFormatNotAvailable error.

func (UnoconvPDFEngine) Descriptor

func (engine UnoconvPDFEngine) Descriptor() gotenberg.ModuleDescriptor

Descriptor returns a UnoconvPDFEngine's module descriptor.

func (UnoconvPDFEngine) Merge

func (engine UnoconvPDFEngine) Merge(_ context.Context, _ *zap.Logger, _ []string, _ string) error

Merge is not available for this PDF engine.

func (*UnoconvPDFEngine) Provision

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

Provision sets the module properties.

Jump to

Keyboard shortcuts

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