Appearance
zeropdf / PdfErrorCode
Enumeration: PdfErrorCode
Defined in: src/errors.ts:4
Stable error-code enum used by PdfEngineError to classify failures.
Enumeration Members
| Enumeration Member | Value | Description | Defined in |
|---|---|---|---|
EMPTY_PAGE | "EMPTY_PAGE" | The operation would create or serialize a document without pages. | src/errors.ts:16 |
INTERNAL_ERROR | "INTERNAL_ERROR" | An internal serialization invariant was violated. | src/errors.ts:72 |
INVALID_ANNOTATION | "INVALID_ANNOTATION" | Annotation options or geometry are invalid. | src/errors.ts:8 |
INVALID_ATTACHMENT | "INVALID_ATTACHMENT" | Attachment data or metadata is invalid. | src/errors.ts:6 |
INVALID_COLOR | "INVALID_COLOR" | A color value is outside the supported range or shape. | src/errors.ts:18 |
INVALID_COMPLIANCE | "INVALID_COMPLIANCE" | The requested output violates an enabled compliance profile. | src/errors.ts:10 |
INVALID_DASH_PATTERN | "INVALID_DASH_PATTERN" | A vector path dash pattern is invalid. | src/errors.ts:20 |
INVALID_DESTINATION | "INVALID_DESTINATION" | A named destination or page target is invalid. | src/errors.ts:12 |
INVALID_ENCRYPTION | "INVALID_ENCRYPTION" | Encryption options or encrypted data are invalid. | src/errors.ts:14 |
INVALID_FONT | "INVALID_FONT" | A font name, embedded font, or font program is invalid. | src/errors.ts:22 |
INVALID_FORM_FIELD | "INVALID_FORM_FIELD" | A form field definition or update is invalid. | src/errors.ts:24 |
INVALID_FORM_FIELD_NAME | "INVALID_FORM_FIELD_NAME" | A form field name is invalid due to naming conflicts (e.g. parent vs terminal). | src/errors.ts:26 |
INVALID_GRAPHICS_STATE | "INVALID_GRAPHICS_STATE" | Graphics state operations are unbalanced or invalid. | src/errors.ts:28 |
INVALID_IMAGE | "INVALID_IMAGE" | Image data or image placement options are invalid. | src/errors.ts:30 |
INVALID_LINK | "INVALID_LINK" | A link target or link rectangle is invalid. | src/errors.ts:32 |
INVALID_METADATA | "INVALID_METADATA" | Document metadata or XMP metadata is invalid. | src/errors.ts:34 |
INVALID_NUMBER | "INVALID_NUMBER" | A numeric API argument is invalid. | src/errors.ts:36 |
INVALID_NUMBER_TREE | "INVALID_NUMBER_TREE" | A number tree is corrupt or has invalid keys. | src/errors.ts:70 |
INVALID_OPERATION | "INVALID_OPERATION" | A document-level operation was attempted in an unsupported state or combination. | src/errors.ts:74 |
INVALID_OUTLINE | "INVALID_OUTLINE" | An outline item or outline target is invalid. | src/errors.ts:38 |
INVALID_PAGE | "INVALID_PAGE" | A page reference, page index, or page edit is invalid. | src/errors.ts:40 |
INVALID_PAGE_LABEL | "INVALID_PAGE_LABEL" | A page-label range is invalid. | src/errors.ts:42 |
INVALID_PAGE_SIZE | "INVALID_PAGE_SIZE" | A page size name or custom page dimensions are invalid. | src/errors.ts:46 |
INVALID_PATH | "INVALID_PATH" | Vector path commands or styles are invalid. | src/errors.ts:48 |
INVALID_PDF | "INVALID_PDF" | The source PDF is malformed or unsupported for the requested operation. | src/errors.ts:44 |
INVALID_TEXT | "INVALID_TEXT" | Text content or text layout options are invalid. | src/errors.ts:50 |
INVALID_TRANSFORM | "INVALID_TRANSFORM" | A graphics transform matrix is invalid. | src/errors.ts:52 |
LAYOUT_OVERFLOW | "LAYOUT_OVERFLOW" | Strict layout rendering detected content that cannot fit in its allotted region. | src/errors.ts:76 |
SINK_CLOSED | "SINK_CLOSED" | A ByteSink or stream operation was attempted after the sink was closed. | src/errors.ts:78 |
SINK_FULL | "SINK_FULL" | A ByteSink has reached its maximum configured capacity. | src/errors.ts:80 |
UNREACHABLE | "UNREACHABLE" | A TypeScript type guard failure indicates an unreachable code path. | src/errors.ts:82 |
UNSUPPORTED_CHARACTER | "UNSUPPORTED_CHARACTER" | Text contains a character unsupported by the selected font set. | src/errors.ts:54 |
UNSUPPORTED_ENCRYPTION | "UNSUPPORTED_ENCRYPTION" | Source or output encryption mode is not supported. | src/errors.ts:64 |
UNSUPPORTED_IMAGE_BIT_DEPTH | "UNSUPPORTED_IMAGE_BIT_DEPTH" | Image bit depth is not supported. | src/errors.ts:56 |
UNSUPPORTED_IMAGE_COLOR_SPACE | "UNSUPPORTED_IMAGE_COLOR_SPACE" | Image color space is not supported. | src/errors.ts:58 |
UNSUPPORTED_IMAGE_FORMAT | "UNSUPPORTED_IMAGE_FORMAT" | Image format is not supported. | src/errors.ts:62 |
UNSUPPORTED_IMAGE_INTERLACE | "UNSUPPORTED_IMAGE_INTERLACE" | Interlaced image data is not supported. | src/errors.ts:60 |
UNSUPPORTED_PAGE_TREE | "UNSUPPORTED_PAGE_TREE" | Page tree nesting exceeds maximum supported depth. | src/errors.ts:66 |
UNSUPPORTED_SCRIPT | "UNSUPPORTED_SCRIPT" | A script (e.g. Devanagari, Thai) cannot be shaped by the current shaper. | src/errors.ts:84 |
UNSUPPORTED_XREF_FORMAT | "UNSUPPORTED_XREF_FORMAT" | Cross-reference format is not supported. | src/errors.ts:68 |