Go to the source code of this file.
◆ PDFTOOLS_CALL
◆ PdfToolsImage_Document_Close()
Close object.
Close disposable objects by invoking this function.
- Parameters
-
| [in] | pObject | Disposable object. |
- Returns
- TRUE if the object was closed successfully; FALSE if an error occured while closing the object. Retrieve the error code by calling PdfTools_GetLastError .
◆ PdfToolsImage_Document_GetType()
Get actual derived type of base type TPdfToolsImage_Document.
This function is invoked prior to downcasting to ascertain the derived object type.
- Parameters
-
| [in,out] | pDocument | Acts as a handle to a native object. |
- Returns
- The item of the enumeration TPdfToolsImage_DocumentType that refers to the actual derived type.
0 in case of an error.
- Note
- An error occurred when
0 was returned. Retrieve specific error code by calling PdfTools_GetLastError. Get the error message with PdfTools_GetLastErrorMessage.
◆ PdfToolsImage_Document_Open()
Open an image document Documents opened with this method are read-only and cannot be modified.
- Parameters
-
| [in] | pStreamDesc | The stream from which the image is read. |
- Returns
- The newly created document instance
NULL if there is an error.
- Note
- An error occurred when
NULL was returned. Retrieve specific error code by calling PdfTools_GetLastError. Get the error message with PdfTools_GetLastErrorMessage. Possible error codes:
◆ PdfToolsImage_DocumentList_Add()
◆ PdfToolsImage_DocumentList_Get()
Returns the element at the specified position in the given list.
- Parameters
-
- Returns
NULL if there is an error.
- Note
- An error occurred when
NULL was returned. Retrieve specific error code by calling PdfTools_GetLastError. Get the error message with PdfTools_GetLastErrorMessage. Possible error codes:
◆ PdfToolsImage_DocumentList_GetCount()
Get the number of elements in the list.
- Parameters
-
- Returns
- May indicate an error in certain scenarios. For further information see the note section below.
- Note
- An error occurred when
0 was returned. Retrieve specific error code by calling PdfTools_GetLastError. Get the error message with PdfTools_GetLastErrorMessage. Possible error codes:
◆ PdfToolsImage_DocumentList_New()
◆ PdfToolsImage_MultiPageDocument_GetPages()
The pages of the image.
- Parameters
-
- Returns
- Retrieved value.
NULL if there is an error.
- Note
- An error occurred when
NULL was returned. Retrieve specific error code by calling PdfTools_GetLastError. Get the error message with PdfTools_GetLastErrorMessage.
◆ PdfToolsImage_Page_GetResolution()
The resolution of the page The resolution can be NULL if the image does not specify a resolution.
- Parameters
-
| [in,out] | pPage | Acts as a handle to the native object of type TPdfToolsImage_Page. |
| [out] | pResolution | Retrieved value. |
- Returns
- FALSE if either an error occurred or the
[out] argument returns NULL. To determine if an error has occurred, check the error code as described in the note section below.
- Note
- An error occurred when FALSE was returned and the error code returned by PdfTools_GetLastError is different from ePdfTools_Error_Success. Get the error message with PdfTools_GetLastErrorMessage. Possible error codes:
◆ PdfToolsImage_Page_GetSize()
The size of the page in number of pixels.
- Parameters
-
| [in,out] | pPage | Acts as a handle to the native object of type TPdfToolsImage_Page. |
| [out] | pSize | Retrieved value. |
- Returns
- TRUE if the operation is successful; FALSE if there is an error.
- Note
- An error occurred when FALSE was returned. Retrieve specific error code by calling PdfTools_GetLastError. Get the error message with PdfTools_GetLastErrorMessage. Possible error codes:
◆ PdfToolsImage_PageList_Get()
Returns the element at the specified position in the given list.
- Parameters
-
- Returns
NULL if there is an error.
- Note
- An error occurred when
NULL was returned. Retrieve specific error code by calling PdfTools_GetLastError. Get the error message with PdfTools_GetLastErrorMessage. Possible error codes:
◆ PdfToolsImage_PageList_GetCount()
Get the number of elements in the list.
- Parameters
-
- Returns
- May indicate an error in certain scenarios. For further information see the note section below.
- Note
- An error occurred when
0 was returned. Retrieve specific error code by calling PdfTools_GetLastError. Get the error message with PdfTools_GetLastErrorMessage. Possible error codes:
◆ PdfToolsImage_SinglePageDocument_GetPage()
The page of the image.
- Parameters
-
- Returns
- Retrieved value.
NULL if there is an error.
- Note
- An error occurred when
NULL was returned. Retrieve specific error code by calling PdfTools_GetLastError. Get the error message with PdfTools_GetLastErrorMessage.