Error Codes

The following are the possible return values for LEADTOOLS ePrint 5 COM methods.

FAILURE

20000

method not successful.

SUCCESS

0

method successful.

SUCCESS_ABORT

2

method successful with an abort request.

SUCCESS_DELETE

3

method successful with a delete file request.

SUCCESS_RETRY

4

method successful with a retry request.

 

Error

No.

Description

ERROR_NO_MEMORY

20001

Not enough memory available.

ERROR_NO_BITMAP

20002

Invalid bitmap handle.

ERROR_MEMORY_TOO_LOW

20003

Not enough memory available.

ERROR_FILE_LSEEK

20004

Error seeking to position.

ERROR_FILE_WRITE

20005

Error writing file.

ERROR_FILE_GONE

20006

File not present - abort.

ERROR_FILE_READ

20007

Error reading file.

ERROR_INV_FILENAME

20008

Invalid filename specified.

ERROR_FILE_FORMAT

20009

Invalid file format.

ERROR_FILENOTFOUND

20010

File not found.

ERROR_INV_RANGE

20011

Invalid width/height.

ERROR_IMAGE_TYPE

20012

Image format recognized, but sub-type not supported.

ERROR_INV_PARAMETER

20013

Invalid parameter passed.

ERROR_FILE_OPEN

20014

Not able to open file.

ERROR_UNKNOWN_COMP

20015

Unknown compression format.

ERROR_FEATURE_NOT_SUPPORTED

20016

Feature not supported.

ERROR_NOT_256_COLOR

20017

VGA card only supports 256 colors (8 bit).

ERROR_PRINTER

20018

Printer error.

ERROR_CRC_CHECK

20019

Data CRC check error.

ERROR_QFACTOR

20021

Invalid QFactor specified.

ERROR_TARGAINSTALL

20022

TARGA not installed.

ERROR_OUTPUTTYPE

20023

Invalid compression format.

ERROR_XORIGIN

20024

X origin specified invalid.

ERROR_YORIGIN

20025

Y origin specified invalid.

ERROR_VIDEOTYPE

20026

Invalid video mode.

ERROR_BITPERPIXEL

20027

Invalid bits/pixel.

ERROR_WINDOWSIZE

20028

Invalid window size.

ERROR_NORMAL_ABORT

20029

Escape key pressed - or user aborted operation.

ERROR_NOT_INITIALIZED

20030

Internal error - call LEAD.

ERROR_CU_BUSY

20031

Internal error - call LEAD.

ERROR_INVALID_TABLE_TYPE

20032

Internal error - call LEAD.

ERROR_UNEQUAL_TABLES

20033

Internal error - call LEAD.

ERROR_INVALID_BUFFER

20034

Internal error - call LEAD.

ERROR_MISSING_TILE_DATA

20035

Internal error - call LEAD.

ERROR_INVALID_QVALUE

20036

Internal error - call LEAD.

ERROR_INVALIDDATA

20037

Internal error - call LEAD.

ERROR_INVALID_COMPRESSED_TYPE

20038

Internal error - call LEAD.

ERROR_INVALID_COMPONENT_NUM

20039

Internal error - call LEAD.

ERROR_INVALID_PIXEL_TYPE

20040

Internal error - call LEAD.

ERROR_INVALID_PIXEL_SAMPLING

20041

Internal error - call LEAD.

ERROR_INVALID_SOURCE_FILE

20042

Internal error - call LEAD.

ERROR_INVALID_TARGET_FILE

20043

Internal error - call LEAD.

ERROR_INVALID_IMAGE_DIMS

20044

Internal error - call LEAD.

ERROR_INVALID_TILE_DIMS

20045

Internal error - call LEAD.

ERROR_INVALID_PIX_BUFF_DIMS

20046

Internal error - call LEAD.

ERROR_SEGMENT_OVERFLOW

20047

Internal error - call LEAD.

ERROR_INVALID_SUBSAMPLING

20048

Internal error - call LEAD.

ERROR_INVALID_Q_VIS_TABLE

20049

Internal error - call LEAD.

ERROR_INVALID_DC_CODE_TABLE

20050

Internal error - call LEAD.

ERROR_INVALID_AC_CODE_TABLE

20051

Internal error - call LEAD.

ERROR_INSUFFICIENT_DATA

20052

Internal error - call LEAD.

ERROR_MISSING_FUNC_POINTER

20053

Internal error - call LEAD.

ERROR_TOO_MANY_DC_CODE_TABLES

20054

Internal error - call LEAD.

ERROR_TOO_MANY_AC_CODE_TABLES

20055

Internal error - call LEAD.

ERROR_INVALID_SUBIMAGE

20056

Internal error - call LEAD.

ERROR_INVALID_ABORTION

20057

Internal error - call LEAD.

ERROR_CU_NO_SUPPORT

20058

Internal error - call LEAD.

ERROR_CU_FAILURE

20059

Internal error - call LEAD.

ERROR_BAD_POINTER

20060

Internal error - call LEAD.

ERROR_HEADER_DATA_FAILUR

20061

Internal error - call LEAD.

ERROR_COMPRESSED_DATA_FAILURE

20062

Internal error - call LEAD.

ERROR_FIXEDPAL_DATA

20063

Fixed palette data not found.

ERROR_LOADFONT_DATA

20064

Fixed palette data not found.

ERROR_NO_STAMP

20065

Stamp not found.

ERROR_G3CODE_INVALID

20070

Invalid group 3 dat.

ERROR_G3CODE_EOF

20071

Group3 code end of file.

ERROR_G3CODE_EOL

20072

Group3 code end of code.

ERROR_PREMATURE_EOF

20073

Premature EOF at scanline.

ERROR_PREMATURE_EOL

20074

Premature end-of-line code.

ERROR_UNCOMP_EOF

20075

Premature end-of-line code.

ERROR_ACT_INCOMP

20076

Premature end-of-line code.

ERROR_BAD_DECODE_STATE

20077

Premature end-of-line code.

ERROR_VERSION_NUMBER

20078

Bad version number.

 

 

 

ERROR_USER_ABORT

20100

User has aborted operation

 

 

 

ERROR_BAD_TAG

20140

Bad TIFF tag

ERROR_INVALID_STAMP_SIZE

20141

Stamp size is too big or invalid bits/pixel, etc

ERROR_BAD_STAMP

20142

Stamp is present but data is corrupted

ERROR_DOCUMENT_NOT_ENABLED

20143

Document capability is required to use this method

ERROR_IMAGE_EMPTY

20144

Image is empty

ERROR_NO_CHANGE

20145

The image hasn't changed

ERROR_LZW_LOCKED

20146

The LZW capabilities are locked

ERROR_FPXEXTENSIONS_LOCKED

20147

The FlashPix extension capabilities are locked

ERROR_ANN_LOCKED

20148

One or more annotation objects are still locked

ERROR_EXCEPTION

20149

An unspecified exception occurred - could be memory access violations

 

 

 

ERROR_LTDIS_NOT_LOADED

20200

 LTDIS dll doesn't loaded.

ERROR_LTFIL_NOT_LOADED

20201

 LTFIL dll doesn't loaded.

 

 

 

ERROR_INV_HANDLE

20261

Invalid handle

 

 

 

ERROR_DXF_FILTER_MISSING

20309

The DXF filter is needed to use this method

ERROR_PAGE_NOT_FOUND

20310

Page not found

ERROR_DELETE_LAST_PAGE

20311

You cannot delete a page from a file containing only one page

ERROR_NO_HOTKEY

20312

There is no hotkey

ERROR_CANNOT_CREATE_HOTKEY_WINDOW

20313

Error creating the hotkey window

ERROR_MEDICAL_NOT_ENABLED

20314

Medical Express capability is required to use this method

ERROR_JBIG_NOT_ENABLED

20315

JBIG capability is required to use this method

ERROR_UNDO_STACK_EMPTY

20316

Undo stack is empty - too many undos

ERROR_NO_TOOLBAR

20317

ActiveX error - the toolbar window was not created

ERROR_MEDICAL_NET_NOT_ENABLED

20318

Medical Network Express capability is required to use this method

ERROR_JBIG_FILTER_MISSING

20319

The JBIG filter is needed to use this method

 

 

 

ERROR_WMF_FILTER_MISSING

20349

WMF filter is needed to use this method

ERROR_BROWSE_FAILED

20350

Directory browsing failed

ERROR_NOTHING_TO_DO

20351

There is nothing to do! - i.e. no files were found

ERROR_INTERNET_NOT_ENABLED

20352

Internet capability is required to use this method

ERROR_LVKRN_MISSING

20353

The LVKRN DLL is needed to use this method

ERROR_CMW_LOCKED

20354

The CMW support is locked

ERROR_CMW_FILTER_MISSING

20355

CMW filter is needed to use this method

ERROR_CMP_FILTER_MISSING

20356

CMP filter is needed to use this method

ERROR_FAX_FILTER_MISSING

20357

FAX filter is needed to use this method

ERROR_PDF_FILTER_MISSING

20358

PDF filter is needed to use this method

ERROR_TIF_FILTER_MISSING

20359

TIF filter is needed to use this method

 

 

 

ERROR_INV_HORZSIZE

20360

The horizontal size is outside the specification

ERROR_INV_VERTSIZE

20361

The vertical size is outside the specification

ERROR_ASPECTRATIO

20362

Invalid pel aspect ratio

ERROR_BITRATE

20363

Invalid bitrate

ERROR_VBV_BUFFER

20364

VBV Buffer Size is isn't valid

ERROR_CHROMA_FORMAT

20365

Invalid chroma format

ERROR_VIDEO_FORMAT

20366

Invalid video format

ERROR_COLOR_PRIMARY

20367

Invalid number of color primaries

ERROR_TRANSFER_CHAR

20368

Invalid number of transfer characteristics

ERROR_MATRIX_COEFF

20369

Invalid number of matrix coefficients

ERROR_DISPLAY_HORZSIZE

20370

Invalid horizontal display size

ERROR_DISPLAY_VERTSIZE

20371

Invalid vertical display size

ERROR_INTRA_DCPREC

20372

Invalid Intra DC Precision

ERROR_FCODE

20373

Invalid f code

ERROR_SRCH_WINDOW

20374

Invalid motion data search window

ERROR_PROFILEID

20375

Invalid profile id

ERROR_LEVELID

20376

Invalid level id

ERROR_PROFILEID_NS

20377

Encoder doesn't support scalable bitstreams

ERROR_INV_COMBINATION

20378

Undefined Profile & Level id combination

ERROR_BPIC_NOTALLOWED

20379

B Pictures not allowed

ERROR_RPTFIRST_MUSTBEZERO

20380

Repeat first must be zero

ERROR_FRAME_RATE

20381

Invalid frame rate

 

 

 

ERROR_VECTOR_NOT_ENABLED

20400

Vector capability is required to use this method

ERROR_VECTOR_DXF_NOT_ENABLED

20401

Vector DXF capability is required to use this method

ERROR_VECTOR_DWG_NOT_ENABLED

20402

Vector DWG capability is required to use this method

ERROR_VECTOR_MISC_NOT_ENABLED

20403

Vector Misc capability is required to use this method

ERROR_TAG_MISSING

20404

Tag not found

ERROR_VECTOR_DWF_NOT_ENABLED

20405

Vector DWF capability is required to use this method

ERROR_NO_UNDO_STACK

20406

There is no undo stack

ERROR_UNDO_DISABLED

20407

The undo is disabled

ERROR_PDF_NOT_ENABLED

20408

PDF capability is required to use this method

ERROR_ENTENSIONS_MISSING

20409

EXIF extensions are missing

 

 

 

ERROR_VECTOR_IS_LOCKED

20500

Vector handle is locked

ERROR_VECTOR_IS_EMPTY

20501

Vector is empty

ERROR_VECTOR_LAYER_NOT_FOUND

20502

Layer is not found

ERROR_VECTOR_LAYER_IS_LOCKED

20503

Layer is locked

ERROR_VECTOR_LAYER_ALREADY_EXISTS

20504

Layer already exists

ERROR_VECTOR_OBJECT_NOT_FOUND

20505

Object is not found

ERROR_VECTOR_INVALID_OBJECT_TYPE

20506

Invalid object type

ERROR_VECTOR_PEN_NOT_FOUND

20507

Pen is not found

ERROR_VECTOR_BRUSH_NOT_FOUND

20508

Brush is not found

ERROR_VECTOR_FONT_NOT_FOUND

20509

Font is not found

ERROR_VECTOR_BITMAP_NOT_FOUND

20510

Bitmap is not found

ERROR_VECTOR_POINT_NOT_FOUND

20511

Point is not found

ERROR_VECTOR_ENGINE_NOT_FOUND

20512

Vector engine not found

ERROR_VECTOR_INVALID_ENGINE

20513

Invalid vector engine

ERROR_VECTOR_CLIPBOARD

20514

Clipboard error

ERROR_VECTOR_CLIPBOARD_IS_EMPTY

20515

Clipboard is empty

ERROR_VECTOR_CANT_ADD_TEXT

20516

Cannot add text

ERROR_VECTOR_CANT_READ_WMF

20517

Cannot read WMF

ERROR_VECTOR_GROUP_NOT_FOUND

20518

Group is not found

ERROR_VECTOR_GROUP_ALREADY_EXISTS

20519

Group already exists

 

 

 

ERROR_JP2_FAILURE

20530

Error in JP2 Box values

ERROR_JP2_SIGNATURE

20531

The header does not match the JP2 signature - not a JP2 file

ERROR_JP2_UNSUPPORTED

20532

JP2 file has a feature that is unsupported

ERROR_J2K_FAILURE

20533

Invalid save options were specified to the encoder

ERROR_J2K_NO_SOC

20534

File header does not contain SOC marker

ERROR_J2K_NO_SOT

20535

File contains complete header but no compressed image data

ERROR_J2K_INFORMATION_SET

20536

Invalid save options were specified or file includes invalid encoded values

ERROR_J2K_LOW_TARGET_SIZE

20537

Compression ratio, target file size, or tile size was too small for encoder

ERROR_J2K_DECOMPOSITION_LEVEL

20538

Specified Wavelet decomposition level was too high

ERROR_J2K_MARKER_VALUE

20539

Decoder could not translate J2K marker - file is corrupt or invalid

ERROR_J2K_UNSUPPORTED

20540

J2K file has image with more than 30 bits per component

ERROR_J2K_FILTER_MISSING

20541

J2K filter is needed to use this method

ERROR_J2K_LOCKED

20542

J2K support is locked

 

 

 

 

 

 

ERROR_INV_SEG_HANDLE

20700

Invalid segmentation handle

ERROR_INV_SEG_DATA 

20701

Invalid segmentation data

ERROR_INV_LAYER_DATA

20702

Invalid layer data

ERROR_MRC_NOT_ALLOCATED

20703

Segmentation handle not initialized

ERROR_INV_MIN_SEGMENT

20704

Invalid minimum segment width or height

ERROR_SEGMENTATION_FAILURE

20705

Segmentation process Failure

ERROR_MRC_INV_PAGE

20706

Invalid MRC file's page number

 

 

 

ERROR_PDF_FILE_ENCRYPTED

20721

The PDF file is encrypted and the szPassword member of the FILEPDFOPTIONS is not set. (No password.)

ERROR_PDF_INVALID_PASSWORD

20722

Invalid password specified

ERROR_PDF_FAX_NOT_ENABLED

20723

LFFAX is required for this method

ERROR_PDF_JPEG_NOT_ENABLED

20724

LFCMP is required for this method

ERROR_PDF_INV_DOC_STRUCTURING_COMMENTS

20725

Invalid Document Structuring Comments (PS and EPS)

ERROR_PDF_FONTS_DIRECTORY_NOT_FOUND

20726

Could not find the Fonts directory.

ERROR_PDF_CANNOT_EDIT_FILE

20727

Cannot insert, delete, append or replace pages.

ERROR_PDF_BAD_CONTENT

20728

File is corrupted.

ERROR_PDF_BAD_INITIALIZATION_FILES

20729

The files required for initializing the PDF engine were not found, or they were found, but are not correct.

 

 

 

ERROR_SVG_FILE_SIZE_READ

20770

SVG - Invalid File Size Read

ERROR_SVG_ROOT_NOT_SVG

20771

SVG - ROOT is Not SVG

ERROR_SVG_NOFOUND_ROOT_ELEMENT

20772

SVG - Root Element Not Found

ERROR_SVG_INV_ELEMENT

20773

SVG - Invalid Element

ERROR_SVG_DUPLICATED_ATTRIBUTE

20774

SVG - Duplicated Attribute

ERROR_SVG_INV_ATTRIBUTE

20775

SVG - Invalid Attribute

ERROR_SVG_INV_ATTRIBUTE_VALUE

20776

SVG - Invalid Attribute Value

ERROR_SVG_BAD_CSS_PROPERTY

20777

SVG - Bad CSS Property

ERROR_SVG_MISSING_REQUIRED_ATTRIBUTE

20778

SVG - Missing Required Attribute

ERROR_SVG_DUPLICATED_ID

20779

SVG - Duplicated ID

ERROR_SVG_INV_COORDINATES_NUMBER

20780

SVG - Invalid Coordinates Number

ERROR_SVG_INV_STRING_COMMA

20781

SVG - Invalid String Comma

 

 

 

ERROR_INVALID_FORMAT

20785

Invalid format.

ERROR_UNSUPPORTED_METHOD

20786

Unsupported method.

ERROR_OPENING_PROFILE

20787

Opening profile.

ERROR_INVALID_COLOR_PROFILE

20788

Invalid color profile.

ERROR_INVALID_STRUCT_SIZE

20789

Invalid structure size.

 

 

 

ERROR_U_V_NOT_MULTIPLES

20791

Vertical subsampling period of U must be must be multiple of vertical subsampling period of V, or vice versa. Also horizontal subsampling period of U must be multiple of horizontal subsampling period of V, or vice versa. Otherwise the error is triggered.

ERROR_NO_NONPLANAR_VERTICAL_SUBSAMPLING_SUPPORTED

20792

Non-planar vertical sub-sampling is not supported.

ERROR_PLANAR_ALIGNMENT_NOT_SUPPORTED

20793

Planar alignment is not supported.

ERROR_UNSUPPORTED_CONVERSION

20794

Unsupported conversion.

ERROR_TRUNCATE_HEIGHT

20795

Height was truncated.

ERROR_TRUNCATE_WIDTH

20796

Width was truncated.

ERROR_TRUNCATE_WIDTH_AND_HEIGHT

20797

Height and width were truncated.

 

 

 

ERROR_LAYER_MISSING

20800

The PSD layer is missing.

ERROR_BAD_MARKER

20801

Bad JPEG marker.

ERROR_AUDIO_MISSING

20802

The audio data is not present.

ERROR_DICOM_NOT_ENABLED

20803

DICOM support is required to use this method

ERROR_EXTGRAY_NOT_ENABLED

20804

Extended grayscale support is required to use this method

ERROR_FILE_READONLY

20805

File is read-only. Cannot open file with write access

ERROR_BAD_RESYNC_MARKER

20806

Bad JPEG Resync marker

ERROR_LTCLR_MISSING

20807

LTCLR DLL is missing

ERROR_MARKER_SIZE_TOO_BIG

20808

The size of the JPEG marker cannot exceed 64K

ERROR_MARKER_MISSING

20809

The required JPEG marker is missing

ERROR_EXTENSIONS_MISSING

20810

This file does not contain Exif extensions

ERROR_MARKER_INDEX 

20811

The marker index is invalid (too big)

ERROR_NO_PROFILE

20812

The ICC profile was not found

ERROR_DECODING_PROFILE

20813

An error has occurred while decoding the profile

ERROR_NULL_PTR

20814

A NULL pointer was passed

ERROR_NO_OVERLAY

20815

The overlay does not exist

ERROR_OVERLAY_INDEX

20816

Something is wrong with the overlay index

ERROR_CORRUPT_PROFILE

20817

The ICC profile was invalid

ERROR_LTSGM_MISSING

20818

LTSGM DLL is missing

ERROR_DCR_FILTER_MISSING

20819

LFDCR filter is needed to use this method

ERROR_KDC_FILTER_MISSING

20820

LFKDC filter is needed to use this method

ERROR_DCS_FILTER_MISSING

20821

LFDCS filter is needed to use this method

ERROR_ABC_FILTER_MISSING

20822

LFABC filter is needed to use this method

ERROR_ABI_FILTER_MISSING

20823

LFABI (ABIC) filter is needed to use this method

ERROR_JB2_FILTER_MISSING

20824

LFJB2 (JBIG2) filter is needed to use this method

 

 

 

ERROR_LTCLR_DLL_NOTLOADED

20900

The LTCLR DLL is not loaded

ERROR_LTDLGRES_DLL_NOTLOADED

20901

The LDLGRES DLL is not loaded

ERROR_LTDLG_COLOR_NOTINITIALIZE

20902

You must initialize LTDLG using L_DlgInit

 

 

 

ERROR_IMAGE_SIZE

20910

Image size not sufficient

ERROR_NO_MESSAGE

20911

There is no message

ERROR_INV_PASSWORD

20912

Invalid password

ERROR_TIFF_COMMAND_NOT_ALLOWED

20913

The specified TIFF command is not allowed

ERROR_BAD_TIFF_TAG_VALUE

20914

Bad TIFF Tag value

ERROR_NOT_MULTIPAGE_TIFF_FILE

20915

Not Multi-Page TIFF file

ERROR_DELETE_TIFF_FILE_NOT_ALLOWED

20916

Not allowed to delete the TIFF file

ERROR_COMPACT_ABORTED

20917

The compact method was finished without copying all the pages.

ERROR_INV_COLORSPACE

20918

Invalid color-space

 

 

 

ERROR_LTPRO_NOT_ENABLED

20930

LEADTOOLS Pro Features are not enabled

 

 

 

ERROR_EPRINT_LOCKED

21000

ePrint is locked, Please execute a License Agreement

ERROR_EPRINT_MORE_DATA

21001

Allocated memory are not enough to retrieve the required data

ERROR_EPRINT_NO_OPTIONS

21002

No previously options set

ERROR_EPRINT_NOT_EPRINT_PRINTER

21003

Not an ePrint Printer

ERROR_EPRINT_NOT_OEM_PRINTER

21004

Not an OEM ePrint Printer

ERROR_EPRINT_PRINTER_DATA

21005

Invalid printer data

ERROR_EPRINT_SET_PRINTER_DATA

21006

Can not set printer data

ERROR_EPRINT_CREATE_REG_KEY

21007

Can not create registry key

ERROR_EPRINT_SET_REG_VALUE

21008

Can not set registry key value

ERROR_EPRINT_ADD_PRINTER

21009

Can not add printer

ERROR_EPRINT_SUPPORT_KEY

21010

Invalid support key

ERROR_EPRINT_PRINTER_NOTFOUND

21011

Printer not found

ERROR_EPRINT_ROOTDIR_NOTFOUND

21012

Root directory not found

ERROR_EPRINT_CONNECTION_EXE_NOTFOUND

21013

Connection file not found

ERROR_EPRINT_SPOOL_FOLDER_NOTFOUND

21014

Spool folder not found

ERROR_EPRINT_INVALID_PRINTER_TYPE

21015

Invalid printer type

ERROR_EPRINT_CREATE_DC

21018

Can not create device context

ERROR_EPRINT_CREATE_TEMP_FILE

21019

Can not create temporary file

 

 

 

ERROR_OPT_ABORT

21100

Abort the optimization operation

ERROR_OPT_SKIPIMAGE

21101

Skip optimizing current image

ERROR_OPT_INVALID_INPUT_PATH

21102

Invalid input path

ERROR_OPT_INVALID_OUTPUT_PATH

21103

Invalid output path

ERROR_OPT_CANNOT_CREATE_OUTPUTPATH

21104

Cannot Create Output Directory

 

 

 

ERROR_ICC_UNKNOWN_TAG

21150

Unknown ICC profile Tag

ERROR_ICC_UNKNOWN_TYPE

21151

Unknown ICC profile Type

ERROR_ICC_UNKNOWN_TAG_AND_TYPE

21152

Unknown ICC profile Tag and Type

ERROR_INVALID_ICC_PROFILE

21153

Invalid ICC profile

ERROR_ICC_IMAGE_NOT_SUPPORTED

21154

Invalid ICC profile

 

 

 

ERROR_INV_VARIANT_TYPE

21350

Invalid Variant type

ERROR_INV_STRING

21351

Invalid string value

ERROR_INV_DISPATCH

21352

Invalid dispatch

ERROR_INV_FILTERNAME

21353

Invalid filter name

 

 

 

ERROR_SIGNED_DATA_NOT_SUPPORTED

21360

Signed image data not supported

ERROR_ABC_LOCKED

21361

ABC file format is locked

ERROR_JBIG2_LOCKED

21362

JBIG2 file format is locked