PDF Toolbox
|
Go to the source code of this file.
Macros | |
#define | PDFTOOLS_TOOLBOX_CALL |
#define | Ptx_GetLastErrorMessage Ptx_GetLastErrorMessageA |
#define | Ptx_Sdk_Initialize Ptx_Sdk_InitializeA |
#define | Ptx_Sdk_AddFontDirectory Ptx_Sdk_AddFontDirectoryA |
#define | Ptx_Sdk_GetVersion Ptx_Sdk_GetVersionA |
#define | Ptx_Sdk_GetProducerFullName Ptx_Sdk_GetProducerFullNameA |
#define | Ptx_StringMap_Get Ptx_StringMap_GetA |
#define | Ptx_StringMap_GetKey Ptx_StringMap_GetKeyA |
#define | Ptx_StringMap_GetValue Ptx_StringMap_GetValueA |
#define | Ptx_StringMap_Set Ptx_StringMap_SetA |
#define | Ptx_StringMap_SetValue Ptx_StringMap_SetValueA |
Functions | |
PDFTOOLS_TOOLBOX_EXPORT void PDFTOOLS_TOOLBOX_CALL | Ptx_Initialize () |
Initializes the library. | |
PDFTOOLS_TOOLBOX_EXPORT void PDFTOOLS_TOOLBOX_CALL | Ptx_Uninitialize () |
Uninitializes the library. | |
PDFTOOLS_TOOLBOX_EXPORT TPtx_ErrorCode PDFTOOLS_TOOLBOX_CALL | Ptx_GetLastError () |
Retrieves the last error code. | |
PDFTOOLS_TOOLBOX_EXPORT size_t PDFTOOLS_TOOLBOX_CALL | Ptx_GetLastErrorMessageA (char *pBuffer, size_t nBufferSize) |
Retrieves the last error message. | |
PDFTOOLS_TOOLBOX_EXPORT size_t PDFTOOLS_TOOLBOX_CALL | Ptx_GetLastErrorMessageW (WCHAR *pBuffer, size_t nBufferSize) |
Retrieve last error message. | |
PDFTOOLS_TOOLBOX_EXPORT void PDFTOOLS_TOOLBOX_CALL | Ptx_SetLastErrorA (TPtx_ErrorCode iErrorCode, const char *szErrorMessage) |
Set last error code and error message. | |
PDFTOOLS_TOOLBOX_EXPORT void PDFTOOLS_TOOLBOX_CALL | Ptx_SetLastErrorW (TPtx_ErrorCode iErrorCode, const WCHAR *szErrorMessage) |
Set last error code and error message. | |
PDFTOOLS_TOOLBOX_EXPORT void PDFTOOLS_TOOLBOX_CALL | Ptx_Release (void *pObject) |
Release object. | |
PDFTOOLS_TOOLBOX_EXPORT void PDFTOOLS_TOOLBOX_CALL | Ptx_AddRef (void *pObject) |
Increase reference count of object. | |
PDFTOOLS_TOOLBOX_EXPORT BOOL PDFTOOLS_TOOLBOX_CALL | Ptx_Equals (void *pObject, void *pOther) |
Compare two native objects. | |
PDFTOOLS_TOOLBOX_EXPORT int PDFTOOLS_TOOLBOX_CALL | Ptx_GetHashCode (void *pObject) |
Get a hash code. | |
PDFTOOLS_TOOLBOX_EXPORT BOOL PDFTOOLS_TOOLBOX_CALL | Ptx_Sdk_InitializeA (const char *szLicense, const char *szProducerSuffix) |
PDFTOOLS_TOOLBOX_EXPORT BOOL PDFTOOLS_TOOLBOX_CALL | Ptx_Sdk_InitializeW (const WCHAR *szLicense, const WCHAR *szProducerSuffix) |
PDFTOOLS_TOOLBOX_EXPORT BOOL PDFTOOLS_TOOLBOX_CALL | Ptx_Sdk_AddFontDirectoryA (const char *szDirectory) |
Add custom font directory. | |
PDFTOOLS_TOOLBOX_EXPORT BOOL PDFTOOLS_TOOLBOX_CALL | Ptx_Sdk_AddFontDirectoryW (const WCHAR *szDirectory) |
Add custom font directory. | |
PDFTOOLS_TOOLBOX_EXPORT size_t PDFTOOLS_TOOLBOX_CALL | Ptx_Sdk_GetVersionA (char *pBuffer, size_t nBufferSize) |
PDFTOOLS_TOOLBOX_EXPORT size_t PDFTOOLS_TOOLBOX_CALL | Ptx_Sdk_GetVersionW (WCHAR *pBuffer, size_t nBufferSize) |
PDFTOOLS_TOOLBOX_EXPORT size_t PDFTOOLS_TOOLBOX_CALL | Ptx_Sdk_GetProducerFullNameA (char *pBuffer, size_t nBufferSize) |
PDFTOOLS_TOOLBOX_EXPORT size_t PDFTOOLS_TOOLBOX_CALL | Ptx_Sdk_GetProducerFullNameW (WCHAR *pBuffer, size_t nBufferSize) |
PDFTOOLS_TOOLBOX_EXPORT int PDFTOOLS_TOOLBOX_CALL | Ptx_StringMap_GetCount (TPtx_StringMap *pStringMap) |
The number of key-value pairs in the map. | |
PDFTOOLS_TOOLBOX_EXPORT int PDFTOOLS_TOOLBOX_CALL | Ptx_StringMap_GetSize (TPtx_StringMap *pStringMap) |
The number of key-value pairs in the map. | |
PDFTOOLS_TOOLBOX_EXPORT int PDFTOOLS_TOOLBOX_CALL | Ptx_StringMap_GetBegin (TPtx_StringMap *pStringMap) |
Get the position of the first entry in the map. | |
PDFTOOLS_TOOLBOX_EXPORT int PDFTOOLS_TOOLBOX_CALL | Ptx_StringMap_GetEnd (TPtx_StringMap *pStringMap) |
Get the end position of the map. | |
PDFTOOLS_TOOLBOX_EXPORT int PDFTOOLS_TOOLBOX_CALL | Ptx_StringMap_GetNext (TPtx_StringMap *pStringMap, int it) |
Get the position of the next entry in the map. | |
PDFTOOLS_TOOLBOX_EXPORT int PDFTOOLS_TOOLBOX_CALL | Ptx_StringMap_GetA (TPtx_StringMap *pStringMap, const char *szKey) |
Get the position of a key in the map. If no error occurred, then the position can be used to get the corresponding value with Ptx_StringMap_GetValue. | |
PDFTOOLS_TOOLBOX_EXPORT int PDFTOOLS_TOOLBOX_CALL | Ptx_StringMap_GetW (TPtx_StringMap *pStringMap, const WCHAR *szKey) |
Get the position of a key in the map. If no error occurred, then the position can be used to get the corresponding value with Ptx_StringMap_GetValue. | |
PDFTOOLS_TOOLBOX_EXPORT size_t PDFTOOLS_TOOLBOX_CALL | Ptx_StringMap_GetKeyA (TPtx_StringMap *pStringMap, int it, char *pBuffer, size_t nBufferSize) |
Get the key of the entry given a position. | |
PDFTOOLS_TOOLBOX_EXPORT size_t PDFTOOLS_TOOLBOX_CALL | Ptx_StringMap_GetKeyW (TPtx_StringMap *pStringMap, int it, WCHAR *pBuffer, size_t nBufferSize) |
Get the key of the entry given a position. | |
PDFTOOLS_TOOLBOX_EXPORT size_t PDFTOOLS_TOOLBOX_CALL | Ptx_StringMap_GetValueA (TPtx_StringMap *pStringMap, int it, char *pBuffer, size_t nBufferSize) |
Get the value of the entry given a position. | |
PDFTOOLS_TOOLBOX_EXPORT size_t PDFTOOLS_TOOLBOX_CALL | Ptx_StringMap_GetValueW (TPtx_StringMap *pStringMap, int it, WCHAR *pBuffer, size_t nBufferSize) |
Get the value of the entry given a position. | |
PDFTOOLS_TOOLBOX_EXPORT BOOL PDFTOOLS_TOOLBOX_CALL | Ptx_StringMap_SetA (TPtx_StringMap *pStringMap, const char *szKey, const char *szValue) |
Set the value of an entry for a given key. This operation invalidates all positions previously returned by‹pre›_‹map›_GetBegin, Ptx_StringMap_GetEnd, Ptx_StringMap_GetNext, and Ptx_StringMap_Get. | |
PDFTOOLS_TOOLBOX_EXPORT BOOL PDFTOOLS_TOOLBOX_CALL | Ptx_StringMap_SetW (TPtx_StringMap *pStringMap, const WCHAR *szKey, const WCHAR *szValue) |
Set the value of an entry for a given key. This operation invalidates all positions previously returned by‹pre›_‹map›_GetBegin, Ptx_StringMap_GetEnd, Ptx_StringMap_GetNext, and Ptx_StringMap_Get. | |
PDFTOOLS_TOOLBOX_EXPORT BOOL PDFTOOLS_TOOLBOX_CALL | Ptx_StringMap_SetValueA (TPtx_StringMap *pStringMap, int it, const char *szValue) |
Set the value of the entry at a position in the map. | |
PDFTOOLS_TOOLBOX_EXPORT BOOL PDFTOOLS_TOOLBOX_CALL | Ptx_StringMap_SetValueW (TPtx_StringMap *pStringMap, int it, const WCHAR *szValue) |
Set the value of the entry at a position in the map. | |
PDFTOOLS_TOOLBOX_EXPORT BOOL PDFTOOLS_TOOLBOX_CALL | Ptx_StringMap_Clear (TPtx_StringMap *pStringMap) |
Remove all entries from the map. | |
PDFTOOLS_TOOLBOX_EXPORT BOOL PDFTOOLS_TOOLBOX_CALL | Ptx_StringMap_Remove (TPtx_StringMap *pStringMap, int it) |
Remove the entry at a position in the map. | |
#define PDFTOOLS_TOOLBOX_CALL |
#define Ptx_GetLastErrorMessage Ptx_GetLastErrorMessageA |
#define Ptx_Sdk_AddFontDirectory Ptx_Sdk_AddFontDirectoryA |
#define Ptx_Sdk_GetProducerFullName Ptx_Sdk_GetProducerFullNameA |
#define Ptx_Sdk_GetVersion Ptx_Sdk_GetVersionA |
#define Ptx_Sdk_Initialize Ptx_Sdk_InitializeA |
#define Ptx_StringMap_Get Ptx_StringMap_GetA |
#define Ptx_StringMap_GetKey Ptx_StringMap_GetKeyA |
#define Ptx_StringMap_GetValue Ptx_StringMap_GetValueA |
#define Ptx_StringMap_Set Ptx_StringMap_SetA |
#define Ptx_StringMap_SetValue Ptx_StringMap_SetValueA |
PDFTOOLS_TOOLBOX_EXPORT void PDFTOOLS_TOOLBOX_CALL Ptx_AddRef | ( | void * | pObject | ) |
Increase reference count of object.
Internally, the reference count is incremented by 1
.
[in,out] | pObject | Object which reference count should be incremented by 1 . |
PDFTOOLS_TOOLBOX_EXPORT BOOL PDFTOOLS_TOOLBOX_CALL Ptx_Equals | ( | void * | pObject, |
void * | pOther ) |
PDFTOOLS_TOOLBOX_EXPORT int PDFTOOLS_TOOLBOX_CALL Ptx_GetHashCode | ( | void * | pObject | ) |
Get a hash code.
Get a hash code for a given native object.
[in] | pObject | Pointer to the object for which a hash code is calculated. |
PDFTOOLS_TOOLBOX_EXPORT TPtx_ErrorCode PDFTOOLS_TOOLBOX_CALL Ptx_GetLastError | ( | ) |
Retrieves the last error code.
When a function returns a value indicating a potential error, determine the error by a specific error code. An error is confirmed if the error code differs from ePtx_Error_Success.
PDFTOOLS_TOOLBOX_EXPORT size_t PDFTOOLS_TOOLBOX_CALL Ptx_GetLastErrorMessageA | ( | char * | pBuffer, |
size_t | nBufferSize ) |
Retrieves the last error message.
Gets a detailed error message.
[out] | pBuffer | The function has to be called twice, the first time by setting pBuffer to NULL to obtain the actual buffer size and the second time with the allocated pBuffer and the buffer size obtained in the first call. The return value of this function specifies the buffer size. |
[in] | nBufferSize | The number of characters to be copied to pBuffer . |
pBuffer
. 0
if there is an error. PDFTOOLS_TOOLBOX_EXPORT size_t PDFTOOLS_TOOLBOX_CALL Ptx_GetLastErrorMessageW | ( | WCHAR * | pBuffer, |
size_t | nBufferSize ) |
Retrieve last error message.
Gets a detailed error message.
[out] | pBuffer | The function has to be called twice, the first time by setting pBuffer to NULL to obtain the actual buffer size and the second time with the allocated pBuffer and the buffer size obtained in the first call. The return value of this function specifies the buffer size. |
[in] | nBufferSize | The buffer size of the retrieved string pBuffer . |
pBuffer
. 0
if there is an error. PDFTOOLS_TOOLBOX_EXPORT void PDFTOOLS_TOOLBOX_CALL Ptx_Initialize | ( | ) |
Initializes the library.
The function that must be called before any other API function. Failing to invoke this function results in undefined behavior.
PDFTOOLS_TOOLBOX_EXPORT void PDFTOOLS_TOOLBOX_CALL Ptx_Release | ( | void * | pObject | ) |
Release object.
Register errors by calling this function within a callback body. Disposable objects should be properly disposed by using their respective close functions.
[in] | pObject | Object to be released. |
PDFTOOLS_TOOLBOX_EXPORT BOOL PDFTOOLS_TOOLBOX_CALL Ptx_Sdk_AddFontDirectoryA | ( | const char * | szDirectory | ) |
Add custom font directory.
[in] | szDirectory | The path of the directory which contains additional font files to be considered during processing. |
PDFTOOLS_TOOLBOX_EXPORT BOOL PDFTOOLS_TOOLBOX_CALL Ptx_Sdk_AddFontDirectoryW | ( | const WCHAR * | szDirectory | ) |
Add custom font directory.
[in] | szDirectory | The path of the directory which contains additional font files to be considered during processing. |
PDFTOOLS_TOOLBOX_EXPORT size_t PDFTOOLS_TOOLBOX_CALL Ptx_Sdk_GetProducerFullNameA | ( | char * | pBuffer, |
size_t | nBufferSize ) |
[out] | pBuffer | Retrieved value. To determine the required buffer size, the function has to be called with NULL . The return value of this function specifies the buffer size. |
[in] | nBufferSize | The buffer size of the retrieved string pBuffer . |
pBuffer
. 0
if there is an error. 0
was returned. Retrieve specific error code by calling Ptx_GetLastError. Get the error message with Ptx_GetLastErrorMessage. PDFTOOLS_TOOLBOX_EXPORT size_t PDFTOOLS_TOOLBOX_CALL Ptx_Sdk_GetProducerFullNameW | ( | WCHAR * | pBuffer, |
size_t | nBufferSize ) |
[out] | pBuffer | Retrieved value. To determine the required buffer size, the function has to be called with NULL . The return value of this function specifies the buffer size. |
[in] | nBufferSize | The buffer size of the retrieved string pBuffer . |
pBuffer
. 0
if there is an error. 0
was returned. Retrieve specific error code by calling Ptx_GetLastError. Get the error message with Ptx_GetLastErrorMessage. PDFTOOLS_TOOLBOX_EXPORT size_t PDFTOOLS_TOOLBOX_CALL Ptx_Sdk_GetVersionA | ( | char * | pBuffer, |
size_t | nBufferSize ) |
[out] | pBuffer | Retrieved value. To determine the required buffer size, the function has to be called with NULL . The return value of this function specifies the buffer size. |
[in] | nBufferSize | The buffer size of the retrieved string pBuffer . |
pBuffer
. 0
if there is an error. 0
was returned. Retrieve specific error code by calling Ptx_GetLastError. Get the error message with Ptx_GetLastErrorMessage. PDFTOOLS_TOOLBOX_EXPORT size_t PDFTOOLS_TOOLBOX_CALL Ptx_Sdk_GetVersionW | ( | WCHAR * | pBuffer, |
size_t | nBufferSize ) |
[out] | pBuffer | Retrieved value. To determine the required buffer size, the function has to be called with NULL . The return value of this function specifies the buffer size. |
[in] | nBufferSize | The buffer size of the retrieved string pBuffer . |
pBuffer
. 0
if there is an error. 0
was returned. Retrieve specific error code by calling Ptx_GetLastError. Get the error message with Ptx_GetLastErrorMessage. PDFTOOLS_TOOLBOX_EXPORT BOOL PDFTOOLS_TOOLBOX_CALL Ptx_Sdk_InitializeA | ( | const char * | szLicense, |
const char * | szProducerSuffix ) |
[in] | szLicense | |
[in] | szProducerSuffix |
PDFTOOLS_TOOLBOX_EXPORT BOOL PDFTOOLS_TOOLBOX_CALL Ptx_Sdk_InitializeW | ( | const WCHAR * | szLicense, |
const WCHAR * | szProducerSuffix ) |
[in] | szLicense | |
[in] | szProducerSuffix |
PDFTOOLS_TOOLBOX_EXPORT void PDFTOOLS_TOOLBOX_CALL Ptx_SetLastErrorA | ( | TPtx_ErrorCode | iErrorCode, |
const char * | szErrorMessage ) |
Set last error code and error message.
Register errors by calling this function within a callback body.
[in] | iErrorCode | Set error code. |
[in] | szErrorMessage | Set null-terminated error message. |
PDFTOOLS_TOOLBOX_EXPORT void PDFTOOLS_TOOLBOX_CALL Ptx_SetLastErrorW | ( | TPtx_ErrorCode | iErrorCode, |
const WCHAR * | szErrorMessage ) |
Set last error code and error message.
Register errors by calling this function within a callback body.
[in] | iErrorCode | Set error code. |
[in] | szErrorMessage | Set null-terminated error message. |
PDFTOOLS_TOOLBOX_EXPORT BOOL PDFTOOLS_TOOLBOX_CALL Ptx_StringMap_Clear | ( | TPtx_StringMap * | pStringMap | ) |
Remove all entries from the map.
[in,out] | pStringMap | Acts as a handle to the native object of type TPtx_StringMap. |
PDFTOOLS_TOOLBOX_EXPORT int PDFTOOLS_TOOLBOX_CALL Ptx_StringMap_GetA | ( | TPtx_StringMap * | pStringMap, |
const char * | szKey ) |
Get the position of a key in the map. If no error occurred, then the position can be used to get the corresponding value with Ptx_StringMap_GetValue.
[in,out] | pStringMap | Acts as a handle to the native object of type TPtx_StringMap. |
[in] | szKey |
0
was returned. Retrieve specific error code by calling Ptx_GetLastError. Get the error message with Ptx_GetLastErrorMessage. Possible error codes:
PDFTOOLS_TOOLBOX_EXPORT int PDFTOOLS_TOOLBOX_CALL Ptx_StringMap_GetBegin | ( | TPtx_StringMap * | pStringMap | ) |
Get the position of the first entry in the map.
The order of the entries is arbitrary and not significant.
If the returned position differs from Ptx_StringMap_GetEnd,then the position can be used to retrieve the map entry with Ptx_StringMap_GetKey, Ptx_StringMap_GetValue.
Use Ptx_StringMap_GetNext to get the position of the next entry.
[in,out] | pStringMap | Acts as a handle to the native object of type TPtx_StringMap. |
0
was returned. Retrieve specific error code by calling Ptx_GetLastError. Get the error message with Ptx_GetLastErrorMessage. Possible error codes:
PDFTOOLS_TOOLBOX_EXPORT int PDFTOOLS_TOOLBOX_CALL Ptx_StringMap_GetCount | ( | TPtx_StringMap * | pStringMap | ) |
The number of key-value pairs in the map.
[in,out] | pStringMap | Acts as a handle to the native object of type TPtx_StringMap. |
0
was returned. Retrieve specific error code by calling Ptx_GetLastError. Get the error message with Ptx_GetLastErrorMessage. Possible error codes:
PDFTOOLS_TOOLBOX_EXPORT int PDFTOOLS_TOOLBOX_CALL Ptx_StringMap_GetEnd | ( | TPtx_StringMap * | pStringMap | ) |
Get the end position of the map.
This position does not correspond to an actual entry in the map.
It must be used to determine whether the end of the map has been reached when using Ptx_StringMap_GetBegin and Ptx_StringMap_GetNext.
[in,out] | pStringMap | Acts as a handle to the native object of type TPtx_StringMap. |
0
was returned. Retrieve specific error code by calling Ptx_GetLastError. Get the error message with Ptx_GetLastErrorMessage. Possible error codes:
PDFTOOLS_TOOLBOX_EXPORT size_t PDFTOOLS_TOOLBOX_CALL Ptx_StringMap_GetKeyA | ( | TPtx_StringMap * | pStringMap, |
int | it, | ||
char * | pBuffer, | ||
size_t | nBufferSize ) |
Get the key of the entry given a position.
[in,out] | pStringMap | Acts as a handle to the native object of type TPtx_StringMap. |
[in] | it | |
[out] | pBuffer | To determine the required buffer size, the function has to be called with NULL . The return value of this function specifies the buffer size. |
[in] | nBufferSize | The buffer size of the retrieved string pBuffer . |
pBuffer
. 0
if there is an error. 0
was returned. Retrieve specific error code by calling Ptx_GetLastError. Get the error message with Ptx_GetLastErrorMessage. Possible error codes:
PDFTOOLS_TOOLBOX_EXPORT size_t PDFTOOLS_TOOLBOX_CALL Ptx_StringMap_GetKeyW | ( | TPtx_StringMap * | pStringMap, |
int | it, | ||
WCHAR * | pBuffer, | ||
size_t | nBufferSize ) |
Get the key of the entry given a position.
[in,out] | pStringMap | Acts as a handle to the native object of type TPtx_StringMap. |
[in] | it | |
[out] | pBuffer | To determine the required buffer size, the function has to be called with NULL . The return value of this function specifies the buffer size. |
[in] | nBufferSize | The buffer size of the retrieved string pBuffer . |
pBuffer
. 0
if there is an error. 0
was returned. Retrieve specific error code by calling Ptx_GetLastError. Get the error message with Ptx_GetLastErrorMessage. Possible error codes:
PDFTOOLS_TOOLBOX_EXPORT int PDFTOOLS_TOOLBOX_CALL Ptx_StringMap_GetNext | ( | TPtx_StringMap * | pStringMap, |
int | it ) |
Get the position of the next entry in the map.
The order of the entries is arbitrary and not significant.
If the returned position differs from Ptx_StringMap_GetEnd, then the position can be used to retrieve the map entry with Ptx_StringMap_GetKey and Ptx_StringMap_GetValue.
[in,out] | pStringMap | Acts as a handle to the native object of type TPtx_StringMap. |
[in] | it |
0
was returned. Retrieve specific error code by calling Ptx_GetLastError. Get the error message with Ptx_GetLastErrorMessage. Possible error codes:
PDFTOOLS_TOOLBOX_EXPORT int PDFTOOLS_TOOLBOX_CALL Ptx_StringMap_GetSize | ( | TPtx_StringMap * | pStringMap | ) |
The number of key-value pairs in the map.
[in,out] | pStringMap | Acts as a handle to the native object of type TPtx_StringMap. |
0
was returned. Retrieve specific error code by calling Ptx_GetLastError. Get the error message with Ptx_GetLastErrorMessage. Possible error codes:
PDFTOOLS_TOOLBOX_EXPORT size_t PDFTOOLS_TOOLBOX_CALL Ptx_StringMap_GetValueA | ( | TPtx_StringMap * | pStringMap, |
int | it, | ||
char * | pBuffer, | ||
size_t | nBufferSize ) |
Get the value of the entry given a position.
[in,out] | pStringMap | Acts as a handle to the native object of type TPtx_StringMap. |
[in] | it | |
[out] | pBuffer | To determine the required buffer size, the function has to be called with NULL . The return value of this function specifies the buffer size. |
[in] | nBufferSize | The buffer size of the retrieved string pBuffer . |
pBuffer
. 0
if there is an error. 0
was returned. Retrieve specific error code by calling Ptx_GetLastError. Get the error message with Ptx_GetLastErrorMessage. Possible error codes:
PDFTOOLS_TOOLBOX_EXPORT size_t PDFTOOLS_TOOLBOX_CALL Ptx_StringMap_GetValueW | ( | TPtx_StringMap * | pStringMap, |
int | it, | ||
WCHAR * | pBuffer, | ||
size_t | nBufferSize ) |
Get the value of the entry given a position.
[in,out] | pStringMap | Acts as a handle to the native object of type TPtx_StringMap. |
[in] | it | |
[out] | pBuffer | To determine the required buffer size, the function has to be called with NULL . The return value of this function specifies the buffer size. |
[in] | nBufferSize | The buffer size of the retrieved string pBuffer . |
pBuffer
. 0
if there is an error. 0
was returned. Retrieve specific error code by calling Ptx_GetLastError. Get the error message with Ptx_GetLastErrorMessage. Possible error codes:
PDFTOOLS_TOOLBOX_EXPORT int PDFTOOLS_TOOLBOX_CALL Ptx_StringMap_GetW | ( | TPtx_StringMap * | pStringMap, |
const WCHAR * | szKey ) |
Get the position of a key in the map. If no error occurred, then the position can be used to get the corresponding value with Ptx_StringMap_GetValue.
[in,out] | pStringMap | Acts as a handle to the native object of type TPtx_StringMap. |
[in] | szKey |
0
was returned. Retrieve specific error code by calling Ptx_GetLastError. Get the error message with Ptx_GetLastErrorMessage. Possible error codes:
PDFTOOLS_TOOLBOX_EXPORT BOOL PDFTOOLS_TOOLBOX_CALL Ptx_StringMap_Remove | ( | TPtx_StringMap * | pStringMap, |
int | it ) |
Remove the entry at a position in the map.
[in,out] | pStringMap | Acts as a handle to the native object of type TPtx_StringMap. |
[in] | it |
PDFTOOLS_TOOLBOX_EXPORT BOOL PDFTOOLS_TOOLBOX_CALL Ptx_StringMap_SetA | ( | TPtx_StringMap * | pStringMap, |
const char * | szKey, | ||
const char * | szValue ) |
Set the value of an entry for a given key. This operation invalidates all positions previously returned by‹pre›_‹map›_GetBegin, Ptx_StringMap_GetEnd, Ptx_StringMap_GetNext, and Ptx_StringMap_Get.
[in,out] | pStringMap | Acts as a handle to the native object of type TPtx_StringMap. |
[in] | szKey | |
[in] | szValue |
PDFTOOLS_TOOLBOX_EXPORT BOOL PDFTOOLS_TOOLBOX_CALL Ptx_StringMap_SetValueA | ( | TPtx_StringMap * | pStringMap, |
int | it, | ||
const char * | szValue ) |
Set the value of the entry at a position in the map.
[in,out] | pStringMap | Acts as a handle to the native object of type TPtx_StringMap. |
[in] | it | |
[in] | szValue |
PDFTOOLS_TOOLBOX_EXPORT BOOL PDFTOOLS_TOOLBOX_CALL Ptx_StringMap_SetValueW | ( | TPtx_StringMap * | pStringMap, |
int | it, | ||
const WCHAR * | szValue ) |
Set the value of the entry at a position in the map.
[in,out] | pStringMap | Acts as a handle to the native object of type TPtx_StringMap. |
[in] | it | |
[in] | szValue |
PDFTOOLS_TOOLBOX_EXPORT BOOL PDFTOOLS_TOOLBOX_CALL Ptx_StringMap_SetW | ( | TPtx_StringMap * | pStringMap, |
const WCHAR * | szKey, | ||
const WCHAR * | szValue ) |
Set the value of an entry for a given key. This operation invalidates all positions previously returned by‹pre›_‹map›_GetBegin, Ptx_StringMap_GetEnd, Ptx_StringMap_GetNext, and Ptx_StringMap_Get.
[in,out] | pStringMap | Acts as a handle to the native object of type TPtx_StringMap. |
[in] | szKey | |
[in] | szValue |
PDFTOOLS_TOOLBOX_EXPORT void PDFTOOLS_TOOLBOX_CALL Ptx_Uninitialize | ( | ) |
Uninitializes the library.
The function that must be called after all the other API functions. Failing to invoke this function results in undefined behavior.