Documentation ¶
Overview ¶
Package example is an... example of module. More examples are available at https://github.com/gotenberg/gotenberg.
Index ¶
- type Ghostscript
- func (engine Ghostscript) Convert(ctx context.Context, logger *zap.Logger, format, inputPath, outputPath string) error
- func (Ghostscript) Descriptor() gotenberg.ModuleDescriptor
- func (engine Ghostscript) Merge(ctx context.Context, logger *zap.Logger, inputPaths []string, ...) error
- func (engine Ghostscript) Metrics() ([]gotenberg.Metric, error)
- func (engine *Ghostscript) Provision(_ *gotenberg.Context) error
- func (engine Ghostscript) Validate() error
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.
Click to show internal directories.
Click to hide internal directories.