Windows
ComPDFKit Conversion SDK
Guides

Conversion Error for CPDFConverter Instance 

 

Error Description
ERR_NONE None.
ERR_SUCCESS Success.
ERR_UNKNOWN Unknown error in processing conversion.
ERR_ENCRYPTED Password required or incorrect password.
ERR_INTERRUPT Conversion process interrupted. 
ERR_PERMISSION The license doesn't allow the permission.
ERR_MALLOC Malloc failure.
ERR_CONVERTING A file is already being converted, so other files could not be converted at the same time.
ERR_PDFERROR Unknown error in processing PDF.
ERR_FILE File not found or could not be opened.
ERR_FORMAT File not in PDF format or corrupted.
ERR_SECURITY Unsupported security scheme.
ERR_PAGE Page not found or content error.


Get the corresponding error code when conversion fails:

 

ConvertError error = ConvertError.ERR_UNKNOWN;
converter.Convert(outputFolderPath, ref outputFileName, pageArray,ImgType.JPEG, ref error, getPorgress);