pdfengine

package
v8.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2024 License: MIT Imports: 6 Imported by: 0

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

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

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

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

Descriptor returns a LibreOfficePdfEngine's module descriptor.

func (*LibreOfficePdfEngine) Merge

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

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