Documentation ¶
Overview ¶
Package pdfcpu provides an implementation of the gotenberg.PdfEngine interface using the pdfcpu library. This package allows for:
1. The merging of PDF files.
Index ¶
- type PdfCpu
- func (engine *PdfCpu) Convert(ctx context.Context, logger *zap.Logger, formats gotenberg.PdfFormats, ...) error
- func (engine *PdfCpu) Descriptor() gotenberg.ModuleDescriptor
- func (engine *PdfCpu) Merge(ctx context.Context, logger *zap.Logger, inputPaths []string, ...) error
- func (engine *PdfCpu) Provision(ctx *gotenberg.Context) error
- func (engine *PdfCpu) ReadMetadata(ctx context.Context, logger *zap.Logger, inputPath string) (map[string]interface{}, error)
- func (engine *PdfCpu) WriteMetadata(ctx context.Context, logger *zap.Logger, metadata map[string]interface{}, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PdfCpu ¶
type PdfCpu struct {
// contains filtered or unexported fields
}
PdfCpu abstracts the pdfcpu library and implements the gotenberg.PdfEngine interface.
func (*PdfCpu) Convert ¶
func (engine *PdfCpu) Convert(ctx context.Context, logger *zap.Logger, formats gotenberg.PdfFormats, inputPath, outputPath string) error
Convert is not available in this implementation.
func (*PdfCpu) Descriptor ¶
func (engine *PdfCpu) Descriptor() gotenberg.ModuleDescriptor
Descriptor returns a PdfCpu's module descriptor.
func (*PdfCpu) Merge ¶
func (engine *PdfCpu) Merge(ctx context.Context, logger *zap.Logger, inputPaths []string, outputPath string) error
Merge combines multiple PDFs into a single PDF.
Click to show internal directories.
Click to hide internal directories.