pdfengine

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: 6 Imported by: 1

Documentation

Overview

Package pdfengine provides a module which interacts with LibreOffice via the UNO (Universal Network Objects) API and implements the gotenberg.PdfEngine interface.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LibreOfficePdfEngine added in v7.10.0

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

LibreOfficePdfEngine interacts with the LibreOffice (Universal Network Objects) API and implements the gotenberg.PdfEngine interface.

func (*LibreOfficePdfEngine) Convert added in v7.10.0

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

Convert converts the given PDF to a specific PDF format. Currently, only the PDF/A-1b, PDF/A-2b, PDF/A-3b and PDF/UA formats are available. If another PDF format is requested, it returns a gotenberg.ErrPdfFormatNotSupported error.

func (*LibreOfficePdfEngine) Descriptor added in v7.10.0

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

Descriptor returns a LibreOfficePdfEngine's module descriptor.

func (*LibreOfficePdfEngine) Merge added in v7.10.0

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

Merge is not available in this implementation.

func (*LibreOfficePdfEngine) Provision added in v7.10.0

func (engine *LibreOfficePdfEngine) 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