Skip to content

Error Codes

pdf-writer (structured errors: code / next_actions / retryable)

CodeMeaning / what to do
INVALID_ARGUMENTInvalid argument
DOC_NOT_FOUNDInput PDF not found
FONT_NOT_FOUNDBad font path
INVALID_PDFBroken PDF
ENCRYPTED_PDFEncrypted PDFs cannot be edited
UNSUPPORTED_PDF_FEATUREUnsupported feature such as XFA
FILE_TOO_LARGESize limit exceeded
SIGNED_PDFSignature guard → preserveSignatures / allowBreakingSignatures
TAGGED_PDFTag guard → allowBreakingTags
FONT_REQUIREDCJK output needs a font → fontPath / PDF_WRITER_FONT
MISSING_GLYPHMissing glyph → onMissingGlyph
INTERNAL_ERRORInternal error

MIT Licensed