pdf

package
v1.55.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 20, 2026 License: MIT Imports: 6 Imported by: 0

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

func FetchPDFFromURL

func FetchPDFFromURL(url string, maxSize int64) ([]byte, error)

FetchPDFFromURL downloads a PDF from URL

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL