Skip to content
DemoFAQ

PDF Generation Template Editor

Open-source visual PDF generation engine with customizable templates and developer-friendly APIs.

View on GitHub

Error Codes ​

This page is used to view the unified error codes, error names, modules, and troubleshooting suggestions of Self-hosted PDF.

Error Code Scope ​

Info

This page applies to the PDF processing and conversion interfaces of Self-hosted PDF. A unified error code may correspond to different error names across modules; use the module tag and container logs for troubleshooting.

Error Response ​

  • HTTP Status Code: Used to determine if a request was successful.
  • Unified Error Code: Used to locate specific service, module, or processing engine issues.
json
{
  "type": "conversion",
  "code": 4,
  "errorCode": "PDF_PAGE_ERROR",
  "message": "PDF page failed to load.",
  "traceId": "82f733c63cc74946a7c5671430e3c6a4"
}

Field Description ​

FieldTypeDescription
typeStringError source: conversion, pdf, or server.
codeNumberNumeric error code returned by the source. Conversion SDK errors use original SDK error codes, while API and server errors generally use 6-digit business codes.
errorCodeStringA stable semantic error identifier corresponding to code.
messageStringHuman-readable error message in English. Documented processing errors use the English description from the corresponding SDK error definitions.
traceIdStringA trace ID used to correlate requests and service logs.

HTTP Error Codes ​

HTTP StatuscodeerrorCodemessage
200Processing error codes (handles errorCode)errorCodeA business error occurred in conversion or PDF processing. Distinguish conversion and pdf by type.
400100001BAD_REQUEST / VALIDATION_ERRORServer request parameters are missing or invalid.
401140001UNAUTHORIZEDMissing or invalid x-api-key / management session.
403140002FORBIDDEN / INVALID_TOKENThe current request is not authorized to execute.
404150001NOT_FOUNDThe resource or task does not exist.
409150002 / 150003TASK_NOT_READY / CONFLICT / INVALID_STATEThe task or resource state does not allow the current request.
413100104FILE_TOO_LARGEThe file exceeded the ComPDF Self-hosted request limit before entering underlying processing.
429130012CONCURRENCY_LIMITToo many requests reached ComPDF Self-hosted simultaneously.
500190999INTERNAL_ERRORUnexpected server error.

Business Error Codes ​

All processing errors in this table are returned with HTTP 200. The conversion error directory includes original numeric error codes such as 4 (PDF_PAGE_ERROR) and six-digit conversion API error codes. Please confirm the corresponding type before interpreting duplicate values.

codeerrorCodeCategoryDescription
100001INVALID_REQUESTconversionInvalid request or parameters.
100001INVALID_ARGUMENTpdfInvalid request or parameters.
100002INVALID_JSONpdfrequest or options is not valid JSON.
100002INVALID_JSONconversionrequest or options is not valid JSON.
100101INVALID_FILE_TYPEpdfUploaded file type is not supported.
100101INVALID_FILE_TYPEconversionUploaded file type is not supported.
100102FILE_REQUIREDpdfMissing required file field.
100102FILE_REQUIREDconversionMissing required file field.
100103FILE_COUNT_MISMATCHpdfFile count and parameters mismatch.
100104FILE_TOO_LARGEpdfUploaded file exceeds size limit.
100105PAGE_LIMIT_EXCEEDEDpdfExceeded page count limit.
100106INVALID_OUTPUT_FILE_NAMEpdfOutput file name is invalid.
110001INVALID_PAGE_RANGEpdfPage range is invalid.
110002INVALID_PAGE_INDEXpdfPage index is invalid.
110003INVALID_RECTpdfRectangle parameter is invalid.
110004INVALID_QUAD_RECTSpdfMultiple quad rects parameter is invalid.
110005PAGE_RANGE_EMPTYpdfPage range did not hit any pages.
120001AUTH_REQUIREDconversionConversion requires authentication.
120001PASSWORD_REQUIREDpdfPDF processing requires password.
120002INVALID_TOKENconversionConversion Token is invalid.
120002INVALID_PASSWORDpdfPDF processing password error.
120201ICC_PROFILE_REQUIREDpdfMissing ICC profile file.
120202ICC_PROFILE_INVALIDpdfInvalid ICC profile file.
130003INVALID_STATEpdfOperation not allowed in current task state.
190001CONVERT_FAILEDconversionConversion failed.
190001SDK_PROCESS_FAILEDpdfSDK processing failed.
190002PDF_PASSWORD_ERRORconversionConversion password error.
190002TEMP_FILE_WRITE_FAILEDpdfPDF temporary file write failed.
190003PDF_FORMAT_ERRORconversionConversion PDF format error.
190003TEMP_FILE_READ_FAILEDpdfPDF temporary file read failed.
190004PDF_SECURITY_ERRORconversionConversion PDF security error.
190004RESULT_PACKAGE_FAILEDpdfPDF result package failed.
190005OCR_FAILUREconversionConversion OCR failed.
190005RESOURCE_EXHAUSTEDpdfPDF processing resources exhausted.
190006JOB_TIMEOUTconversionConversion job timeout.
190006REQUEST_TIMEOUTpdfPDF processing request timeout.
190009SDK_FILE_ERRORpdfFile cannot be opened or does not exist.
190009SDK_FILE_ERRORconversionFile cannot be opened or does not exist.
190999UPSTREAM_ERRORprocessing engineUnknown processing engine error.

Troubleshooting Rules ​

  1. First confirm the product package, API path, and request module.
  2. Then check input, permissions, resources, and processing engine logs according to the unified error code and error name.
  3. When submitting an issue, provide the Error Code, Error Name, traceId, request time, and related container logs.