PDFiumErrorCode
Defined in: src/core/errors.ts:22
Error codes for PDFium operations, grouped by category.
- 1xx: Initialisation errors
- 2xx: Document errors
- 3xx: Page errors
- 4xx: Render errors
- 5xx: Memory errors
- 6xx: Text errors
- 7xx: Object errors
- 8xx: Worker errors
Enumeration Members
Section titled “Enumeration Members”| Enumeration Member | Value | Description | Defined in |
|---|---|---|---|
ANNOT_INDEX_OUT_OF_RANGE | 750 | Annotation index is out of range | src/core/errors.ts:95 |
ANNOT_LOAD_FAILED | 751 | Failed to load annotation | src/core/errors.ts:97 |
DOC_ALREADY_CLOSED | 205 | Attempted to use a document that has been closed | src/core/errors.ts:45 |
DOC_CREATE_FAILED | 208 | Failed to create a new document | src/core/errors.ts:51 |
DOC_FILE_NOT_FOUND | 200 | The specified file was not found | src/core/errors.ts:35 |
DOC_FORMAT_INVALID | 201 | The document format is invalid or unsupported | src/core/errors.ts:37 |
DOC_LOAD_UNKNOWN | 206 | Unknown error while loading document | src/core/errors.ts:47 |
DOC_PASSWORD_INCORRECT | 203 | The provided password is incorrect | src/core/errors.ts:41 |
DOC_PASSWORD_REQUIRED | 202 | The document requires a password to open | src/core/errors.ts:39 |
DOC_PERMISSION_DENIED | 209 | Operation not permitted by document permissions | src/core/errors.ts:53 |
DOC_SAVE_FAILED | 207 | Failed to save document | src/core/errors.ts:49 |
DOC_SECURITY_UNSUPPORTED | 204 | The document uses unsupported security features | src/core/errors.ts:43 |
INIT_INVALID_OPTIONS | 102 | Invalid initialisation options provided | src/core/errors.ts:29 |
INIT_LIBRARY_FAILED | 101 | Failed to initialise the PDFium library | src/core/errors.ts:27 |
INIT_NETWORK_ERROR | 103 | Network error while fetching resources | src/core/errors.ts:31 |
INIT_WASM_LOAD_FAILED | 100 | Failed to load the WASM module | src/core/errors.ts:25 |
MEMORY_ALLOCATION_FAILED | 500 | Failed to allocate memory in the WASM heap | src/core/errors.ts:75 |
MEMORY_BUFFER_OVERFLOW | 501 | Buffer overflow detected | src/core/errors.ts:77 |
MEMORY_INVALID_POINTER | 502 | Invalid pointer operation | src/core/errors.ts:79 |
OBJECT_ACCESS_FAILED | 701 | Failed to access page object | src/core/errors.ts:93 |
OBJECT_TYPE_UNKNOWN | 700 | Unknown or unsupported object type | src/core/errors.ts:91 |
PAGE_ALREADY_CLOSED | 302 | Attempted to use a page that has been closed | src/core/errors.ts:61 |
PAGE_INDEX_OUT_OF_RANGE | 303 | Page index is out of valid range | src/core/errors.ts:63 |
PAGE_LOAD_FAILED | 301 | Failed to load the page | src/core/errors.ts:59 |
PAGE_NOT_FOUND | 300 | The specified page index is out of bounds | src/core/errors.ts:57 |
RENDER_BITMAP_FAILED | 400 | Failed to create the bitmap for rendering | src/core/errors.ts:67 |
RENDER_FAILED | 402 | Rendering operation failed | src/core/errors.ts:71 |
RENDER_INVALID_DIMENSIONS | 401 | Invalid dimensions specified for rendering | src/core/errors.ts:69 |
RESOURCE_DISPOSED | 900 | Attempted to use a resource that has been disposed | src/core/errors.ts:111 |
TEXT_EXTRACTION_FAILED | 600 | Failed to extract text from the page | src/core/errors.ts:83 |
TEXT_LOAD_FAILED | 602 | Failed to load text page for text extraction | src/core/errors.ts:87 |
TEXT_PAGE_FAILED | 601 | Failed to create text page object | src/core/errors.ts:85 |
WORKER_COMMUNICATION_FAILED | 801 | Worker communication error | src/core/errors.ts:103 |
WORKER_CREATE_FAILED | 800 | Failed to create worker | src/core/errors.ts:101 |
WORKER_RESOURCE_LIMIT | 803 | Worker resource limit exceeded | src/core/errors.ts:107 |
WORKER_TIMEOUT | 802 | Worker operation timed out | src/core/errors.ts:105 |