Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CombinePDFs ¶
func CombinePDFs(c CombineConfig) error
CombinePDFs merges multiple PDFs into one
func CompressPDF ¶
func CompressPDF(c CompressConfig) error
CompressPDF executes the standalone PDF compression process without splitting
func Extract ¶
func Extract(c ExtractConfig) error
Extract executes the PDF extraction process (Range Mode)
Types ¶
type ChunkConfig ¶
type ChunkConfig struct {
Input io.ReadSeeker
PageSize int
Password string
Compress bool
Quality int
Concurrency int
Scale int
// Callbacks
CreateWriter func(chunkIndex int, maxDigits int) (io.WriteCloser, error)
OnProgress func(current, total int)
OnLog func(msg string)
}
ChunkConfig holds the application configuration for splitting
type CombineConfig ¶
type CombineConfig struct {
Inputs []io.ReadSeeker
Password string
Compress bool
Quality int
Concurrency int
Scale int
// Callbacks
CreateWriter func() (io.WriteCloser, error)
OnProgress func(current, total int)
OnLog func(msg string)
}
CombineConfig holds the configuration for merging PDFs
type CompressConfig ¶
type CompressConfig struct {
Input io.ReadSeeker
Password string
Quality int
Concurrency int
Scale int
// Callbacks
CreateWriter func() (io.WriteCloser, error)
OnProgress func(current, total int)
OnLog func(msg string)
}
CompressConfig holds the configuration for standalone compression
Click to show internal directories.
Click to hide internal directories.