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 ¶
- type LibreOfficePdfEngine
- func (engine *LibreOfficePdfEngine) Convert(ctx context.Context, logger *zap.Logger, formats gotenberg.PdfFormats, ...) error
- func (engine *LibreOfficePdfEngine) Descriptor() gotenberg.ModuleDescriptor
- func (engine *LibreOfficePdfEngine) Merge(ctx context.Context, logger *zap.Logger, inputPaths []string, ...) error
- func (engine *LibreOfficePdfEngine) Provision(ctx *gotenberg.Context) error
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.
Click to show internal directories.
Click to hide internal directories.