BiPDF.ocx specific error codes

The last error code in the BiPDF.ocx can be retrieved by the PDF_GetLastError method.

The GetLastPDFErrorText method can be used to get the error message associated with error code.

Please note that each OCX has a different Error code method and Error String method.

Error Code number

Error Code

Meaning

0

E_NOERROR

No error

1

E_WINAPI_GETLASTERROR

Error occured, call the Windows API GetLastError() for the error code.

2

E_INVALID_HANDLE_VALUE

Invalid handle value.

3

E_FILE_ALREADY_EXISTS

The file already exists.

4

E_INVALID_IMAGE_SIZE

Invalid image size.

5

E_INVALID_BITSPERPIXEL

Invalid bit/pixel value.

6

E_INVALID_STRING

Invalid string.

7

E_NULL_POINTER

Null pointer.

8

E_ZERO_BYTES_TO_WRITE

Zero bytes to write.

9

E_INVALID_DPI

Invalid DPI value.

10

E_MEMORY_ALLOCATION_ERROR

Memory allocation error.

11

E_OBJECT_ALREADY_EXISTS

The Object already exists.

12

E_TOO_MANY_OBJECTS

Too many objects.

13

E_INVALID_RESOURCE_TYPE

Invalid resource type.

14

E_INVALID_STREAM_SIZE

Invalid stream size.

15

E_FILTER_NOT_SUPPORTED

The filter is not supported.

16

E_NEGATIVE_VALUE

Negative value.

17

E_TEMP_DIRECTORY_ERROR

Temp directory error.

18

E_TEMPFILE_ERROR

Temp file error.

19

E_INVALID_TIFF_DLL

Invalid Tiff dll.

20

E_ENCODING_FAILED

Encoding failed.

21

E_INVALID_JPEG_DLL

Invalid Jpeg dll.

22

E_INVALID_PARAMETER

Invalid Parameter

23

E_OPEN_FILE_ERROR

Error opening file

24

E_NOT_PDF_FILE

File is not a PDF file

25

E_PDF_VERSION_NOT_SUPPORTED

PDF version is not supported

26

E_READ_FILE_ERROR

Error reading file

27

E_ERROR_DURING_DECOMPRESSION

Error during decompression

28

E_INVALID_PALETTE

Invalid palette

29

E_COMPRESSION_NOT_SUPPORTED

Compression is not supported

30

E_CCITT_DECODING_FAILED

CCITT decoding failed

31

E_INVALID_PAGE_NUMBER

Invalid page number

32

E_PDF_OBJECT_NOT_INITIALIZED_USE_INITPDF

PDF Object not initialized

33

E_INVALID_PROCSET

Invalid ProcSet value

34

E_INVALID_OBJECT_TYPE

Invalid object type

35

E_INSUFFICIENT_BUFFER

Insufficient buffer size

36

E_CANNOT_LOAD_BIVPDF_DLL

The BIVPDF.dll (32-bit) or the BIVPDFx.dll (64-bit) could not be loaded. Please make sure it is in the same directory as the BIPDF.dll (32-bit) or the BIPDFx.dll (64-bit).

37

E_PASSWORD_PROTECTED

The PDF file is password protected and the password was not specified.

38

E_INCORRECT_PAGE_SIZE

Could not merge the pages of the document, because the width of the pages did not match.

39

E_CANNOT_LOAD_BIDIB_DLL

The BIDIB.dll (32-bit) or the BIDIBx.dll (64-bit) could not be loaded. Please make sure it is in the same directory as the BIPDF.dll (32-bit) or the BIPDFx.dll (64-bit).

40

E_COULD_NOT_CREATE_PAGE

Failed to create a new page in the PDF document.

41

E_COULD_NOT_INSERT_IMAGE

Failed to insert the image to the specified page.

42

E_FILE_NOT_FOUND

The specified file could not be found.

43

E_ACCESS_DENIED

Access to the file was denied. Please check the file permissions.

44

E_INVALID_PASSWORD

The specified password is not valid for the document.