Skip to content

PDFiumErrorCode

@scaryterry/pdfium


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 MemberValueDescriptionDefined in
ANNOT_INDEX_OUT_OF_RANGE750Annotation index is out of rangesrc/core/errors.ts:95
ANNOT_LOAD_FAILED751Failed to load annotationsrc/core/errors.ts:97
DOC_ALREADY_CLOSED205Attempted to use a document that has been closedsrc/core/errors.ts:45
DOC_CREATE_FAILED208Failed to create a new documentsrc/core/errors.ts:51
DOC_FILE_NOT_FOUND200The specified file was not foundsrc/core/errors.ts:35
DOC_FORMAT_INVALID201The document format is invalid or unsupportedsrc/core/errors.ts:37
DOC_LOAD_UNKNOWN206Unknown error while loading documentsrc/core/errors.ts:47
DOC_PASSWORD_INCORRECT203The provided password is incorrectsrc/core/errors.ts:41
DOC_PASSWORD_REQUIRED202The document requires a password to opensrc/core/errors.ts:39
DOC_PERMISSION_DENIED209Operation not permitted by document permissionssrc/core/errors.ts:53
DOC_SAVE_FAILED207Failed to save documentsrc/core/errors.ts:49
DOC_SECURITY_UNSUPPORTED204The document uses unsupported security featuressrc/core/errors.ts:43
INIT_INVALID_OPTIONS102Invalid initialisation options providedsrc/core/errors.ts:29
INIT_LIBRARY_FAILED101Failed to initialise the PDFium librarysrc/core/errors.ts:27
INIT_NETWORK_ERROR103Network error while fetching resourcessrc/core/errors.ts:31
INIT_WASM_LOAD_FAILED100Failed to load the WASM modulesrc/core/errors.ts:25
MEMORY_ALLOCATION_FAILED500Failed to allocate memory in the WASM heapsrc/core/errors.ts:75
MEMORY_BUFFER_OVERFLOW501Buffer overflow detectedsrc/core/errors.ts:77
MEMORY_INVALID_POINTER502Invalid pointer operationsrc/core/errors.ts:79
OBJECT_ACCESS_FAILED701Failed to access page objectsrc/core/errors.ts:93
OBJECT_TYPE_UNKNOWN700Unknown or unsupported object typesrc/core/errors.ts:91
PAGE_ALREADY_CLOSED302Attempted to use a page that has been closedsrc/core/errors.ts:61
PAGE_INDEX_OUT_OF_RANGE303Page index is out of valid rangesrc/core/errors.ts:63
PAGE_LOAD_FAILED301Failed to load the pagesrc/core/errors.ts:59
PAGE_NOT_FOUND300The specified page index is out of boundssrc/core/errors.ts:57
RENDER_BITMAP_FAILED400Failed to create the bitmap for renderingsrc/core/errors.ts:67
RENDER_FAILED402Rendering operation failedsrc/core/errors.ts:71
RENDER_INVALID_DIMENSIONS401Invalid dimensions specified for renderingsrc/core/errors.ts:69
RESOURCE_DISPOSED900Attempted to use a resource that has been disposedsrc/core/errors.ts:111
TEXT_EXTRACTION_FAILED600Failed to extract text from the pagesrc/core/errors.ts:83
TEXT_LOAD_FAILED602Failed to load text page for text extractionsrc/core/errors.ts:87
TEXT_PAGE_FAILED601Failed to create text page objectsrc/core/errors.ts:85
WORKER_COMMUNICATION_FAILED801Worker communication errorsrc/core/errors.ts:103
WORKER_CREATE_FAILED800Failed to create workersrc/core/errors.ts:101
WORKER_RESOURCE_LIMIT803Worker resource limit exceededsrc/core/errors.ts:107
WORKER_TIMEOUT802Worker operation timed outsrc/core/errors.ts:105