ghostscript

package
v0.0.0-...-e1d84cd Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package example is an... example of module. More examples are available at https://github.com/gotenberg/gotenberg.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Ghostscript

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

Ghostscript abstracts the CLI tool Ghostscript and implements the gotenberg.PDFEngine interface.

func (Ghostscript) Convert

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

Convert converts PDF with this engine

func (Ghostscript) Descriptor

func (Ghostscript) Descriptor() gotenberg.ModuleDescriptor

Descriptor returns a QPDF's module descriptor.

func (Ghostscript) Merge

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

Merge merges PDFs with Ghostscript.

func (Ghostscript) Metrics

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

Metrics returns the metrics.

func (*Ghostscript) Provision

func (engine *Ghostscript) Provision(_ *gotenberg.Context) error

Provision sets the modules properties. It returns an error if the environment variable QPDF_BIN_PATH is not set.

func (Ghostscript) Validate

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