Documentation
¶
Index ¶
Constants ¶
View Source
const ( MaxPDFSize = 32 * 1024 * 1024 // 32MB request limit MaxPDFPages = 100 // Max pages per request )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type PDFValidator ¶
type PDFValidator struct {
// contains filtered or unexported fields
}
func NewPDFValidator ¶
func NewPDFValidator(cfg *config.PDFConfig) *PDFValidator
func (*PDFValidator) ValidatePDF ¶
func (v *PDFValidator) ValidatePDF(data []byte) error
ValidatePDF checks if PDF meets requirements
Click to show internal directories.
Click to hide internal directories.