Documentation
¶
Index ¶
- func AddImageWatermark(input, output, imagePath string, pages []int, password string) error
- func AddWatermark(input, output, text string, pages []int, password string) error
- func Compress(input, output, password string) error
- func Decrypt(input, output, password string) error
- func Encrypt(input, output, userPW, ownerPW string) error
- func ExtractImages(input, outputDir string, pages []int, password string) error
- func ExtractPages(input, output string, pages []int, password string) error
- func ExtractText(input string, pages []int, password string) (string, error)
- func Merge(inputs []string, output, password string) error
- func PageCount(path, password string) (int, error)
- func Rotate(input, output string, angle int, pages []int, password string) error
- func SetMetadata(input, output string, meta *Metadata, password string) error
- func Split(input, outputDir, password string) error
- func SplitByPageCount(input, outputDir string, pageCount int, password string) error
- func Validate(path, password string) error
- func ValidateToBuffer(data []byte) error
- type Info
- type Metadata
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddImageWatermark ¶
AddImageWatermark adds an image watermark to a PDF
func AddWatermark ¶
AddWatermark adds a text watermark to a PDF
func ExtractImages ¶
ExtractImages extracts images from a PDF
func ExtractPages ¶
ExtractPages extracts specific pages from a PDF into a new file
func ExtractText ¶
ExtractText extracts text content from a PDF
func SetMetadata ¶
SetMetadata sets metadata on a PDF
func SplitByPageCount ¶
SplitByPageCount splits a PDF into chunks of n pages
func ValidateToBuffer ¶
ValidateToBuffer validates a PDF from bytes
Types ¶
type Info ¶
type Info struct {
FilePath string
FileSize int64
Pages int
Version string
Title string
Author string
Subject string
Keywords string
Creator string
Producer string
CreatedDate string
ModDate string
Encrypted bool
}
Info holds PDF document information
Click to show internal directories.
Click to hide internal directories.