Skip to content
ComPDF

Error Codes

Most C APIs return CSDKErrorCode. e_CErrSuccess indicates success. Other common error codes include:

Error CodeMeaning
e_CErrFileFile cannot be found or opened.
e_CErrPDFPasswordThe PDF password is invalid.
e_CErrPDFFormatThe PDF format is invalid or the file is corrupted.
e_CErrOutOfMemoryMemory allocation failed.
e_CErrLicenseInvalidThe license is invalid.
e_CErrLicenseExpireThe license has expired.
e_CErrLicenseConcurrencyExceededCurrent conversion concurrency exceeds the license limit.
e_CErrLicensePageLimitExceededCurrent conversion pages exceed the license limit.
e_CErrOCRFailureOCR recognition failed.
e_CErrConvertingA conversion task is already running.
e_CErrUnknownUnknown error.

Always check the returned error code after calling a conversion API.

4. Conversion Guides

ComPDF Conversion SDK allows developers to use simple C APIs to convert PDFs to common formats such as Word, Excel, PowerPoint, HTML, CSV, PNG, JPEG, RTF, TXT, Searchable PDF, OFD, JSON, and Markdown. It also provides conversion options, such as whether to include images or annotations, whether to enable OCR, and whether to enable layout analysis.