Documentation
¶
Overview ¶
Package pdferrors provides error types and wrapping for pdf-cli.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrFileNotFound = errors.New("file not found") ErrNotPDF = errors.New("not a valid PDF file") ErrInvalidPages = errors.New("invalid page specification") ErrPasswordRequired = errors.New("password required") ErrWrongPassword = errors.New("incorrect password") ErrCorruptPDF = errors.New("PDF file is corrupted") ErrOutputExists = errors.New("output file already exists") )
Common error types
Functions ¶
func FormatError ¶
FormatError formats an error for display to the user
func IsFileNotFound ¶
IsFileNotFound checks if an error is a file not found error
func IsPasswordRequired ¶
IsPasswordRequired checks if an error indicates a password is required
Types ¶
type PDFError ¶
PDFError represents a user-friendly error for PDF operations
func NewPDFError ¶
NewPDFError creates a new PDFError
Click to show internal directories.
Click to hide internal directories.