Documentation ¶
Overview ¶
Package pdftk provides a module which abstracts the CLI tool PDFtk and implements the gotenberg.PDFEngine interface.
Index ¶
- type PDFtk
- func (engine PDFtk) Convert(_ context.Context, _ *zap.Logger, format, _, _ string) error
- func (engine PDFtk) Descriptor() gotenberg.ModuleDescriptor
- func (engine PDFtk) Merge(ctx context.Context, logger *zap.Logger, inputPaths []string, ...) error
- func (engine *PDFtk) Provision(_ *gotenberg.Context) error
- func (engine PDFtk) Validate() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PDFtk ¶
type PDFtk struct {
// contains filtered or unexported fields
}
PDFtk abstracts the CLI tool PDFtk and implements the gotenberg.PDFEngine interface.
func (PDFtk) Descriptor ¶
func (engine PDFtk) Descriptor() gotenberg.ModuleDescriptor
Descriptor returns a PDFtk's module descriptor.
func (PDFtk) Merge ¶
func (engine PDFtk) Merge(ctx context.Context, logger *zap.Logger, inputPaths []string, outputPath string) error
Merge merges the given PDFs into a unique PDF.
Click to show internal directories.
Click to hide internal directories.