![]() |
PDFix SDK
6.5.0
|
PdsDictionary class. More...
Public Member Functions | |
| virtual bool | Known (const wchar_t *key)=0 |
| virtual int | GetNumKeys ()=0 |
| Gets the number of keys in the dictionary. More... | |
| virtual int | GetKey (int index, wchar_t *buffer, int len)=0 |
| Gets the key in the dictionary by index. More... | |
| virtual PdsObject * | Get (const wchar_t *key)=0 |
| Gets the value of the specified key in the specified dictionary. More... | |
| virtual bool | Put (const wchar_t *key, PdsObject *value)=0 |
| Method puts object to specified key in the dictionary. More... | |
| virtual bool | PutBool (const wchar_t *key, bool value)=0 |
| Method puts Boolean to specified key in the dictionary. More... | |
| virtual bool | PutName (const wchar_t *key, const wchar_t *value)=0 |
| Method puts Name to specified key in the dictionary. More... | |
| virtual bool | PutString (const wchar_t *key, const wchar_t *value)=0 |
| Method puts string to specified key in the dictionary. More... | |
| virtual bool | PutNumber (const wchar_t *key, double value)=0 |
| Method puts number to specified key in the dictionary. More... | |
| virtual bool | PutRect (const wchar_t *key, PdfRect *rect)=0 |
| Method puts rectangle to specified key in the dictionary. More... | |
| virtual bool | PutMatrix (const wchar_t *key, PdfMatrix *matrix)=0 |
| Method puts matrix to specified key in the dictionary. More... | |
| virtual PdsDictionary * | PutDict (const wchar_t *key)=0 |
| Method puts new dictionary to specified key in the dictionary. More... | |
| virtual PdsArray * | PutArray (const wchar_t *key)=0 |
| Method puts new array to specified key in the dictionary. More... | |
| virtual PdsDictionary * | GetDictionary (const wchar_t *key)=0 |
| virtual PdsArray * | GetArray (const wchar_t *key)=0 |
| virtual PdsStream * | GetStream (const wchar_t *key)=0 |
| virtual int | GetString (const wchar_t *key, char *buffer, int len)=0 |
| virtual int | GetText (const wchar_t *key, wchar_t *buffer, int len)=0 |
| virtual double | GetNumber (const wchar_t *key)=0 |
| virtual int | GetInteger (const wchar_t *key, int default_value)=0 |
| virtual bool | GetBoolean (const wchar_t *key, bool default_value)=0 |
Public Member Functions inherited from PdsObject | |
| virtual PdfObjectType | GetObjectType ()=0 |
| Gets the type of an object. More... | |
| virtual int | GetId ()=0 |
| Gets the object number. More... | |
PdsDictionary class.
A PdsDictionary is an associative table whose elements are pairs of objects:
|
pure virtual |
Gets the value of the specified key in the specified dictionary.
| key | The key whose value is obtained. |
|
pure virtual |
Gets the PdsArray object from dictionary by key or null if the objecs does not exist or it's an object of the different type.
| key | The key under which the object is to be retrieved. |
|
pure virtual |
Gets the value of PdsBoolean object from array by index. Method returns default value if the objecs does not exist or it's an object of the different type.
| key | The key under which the object is to be retrieved. |
| default_value | The default value to be returned if the value cannot be retrieved |
|
pure virtual |
Gets the PdsDictionary object from dictionary by key or null if the objecs does not exist or it's an object of the different type.
| key | The key under which the object is to be retrieved. |
|
pure virtual |
Gets the integer value of the PdsNumber object from array by index. Method returns default value if the objecs does not exist or it's an object of the different type.
| key | The key under which the object is to be retrieved. |
| default_value | The default value to be returned if the value cannot be retrieved |
|
pure virtual |
Gets the key in the dictionary by index.
| index | The index of key whose value is obtained. |
| buffer | (filled by method) If the buffer is null function returns required length of string |
| len | Length of a buffer to be filled in. |
|
pure virtual |
Gets the float value of the PdsNumber object from dictionary by key. Method returns 0 if the objecs does not exist or it's an object of the different type.
| key | The key under which the object is to be retrieved. |
|
pure virtual |
Gets the number of keys in the dictionary.
|
pure virtual |
Gets the PdsStream object from dictionary by key or null if the objecs does not exist or it's an object of the different type.
| key | The key under which the object is to be retrieved. |
|
pure virtual |
Gets the string value of the PdsString or PdsName object from dictionary by key. Method returns 0 if the objecs does not exist or it's an object of the different type.
| key | The key under which the object is to be retrieved. |
| buffer | (filled by method) If the buffer is null function returns required length of string data. |
| len | Length of a buffer to be filled in. |
|
pure virtual |
Gets the unicode value of the PdsString or PdsName object from dictionary by key. Method returns 0 if the objecs does not exist or it's an object of the different type.
| key | The key under which the object is to be retrieved. |
| buffer | (filled by method) If the buffer is null function returns required length of string |
| len | Length of a buffer to be filled in. |
|
pure virtual |
Tests whether a specific key is found in the specified dictionary. Calling this method is equivalent to checking if the value returned from GetObject is a null object.
| key | The key to find. |
|
pure virtual |
Method puts object to specified key in the dictionary.
| key | The name of the key under which the object is stored. |
|
pure virtual |
Method puts new array to specified key in the dictionary.
| key | The name of the key under which the object is stored. |
|
pure virtual |
Method puts Boolean to specified key in the dictionary.
| key | The name of the key under which the object is stored. |
| value | boolean. |
|
pure virtual |
Method puts new dictionary to specified key in the dictionary.
| key | The name of the key under which the object is stored. |
|
pure virtual |
Method puts matrix to specified key in the dictionary.
| key | The name of the key under which the object is stored. |
| matrix | Pointer to matrix. |
|
pure virtual |
Method puts Name to specified key in the dictionary.
| key | The name of the key under which the object is stored. |
| value | Name. |
|
pure virtual |
Method puts number to specified key in the dictionary.
| key | The name of the key under which the object is stored. |
| value | Double number. |
|
pure virtual |
Method puts rectangle to specified key in the dictionary.
| key | The name of the key under which the object is stored. |
| rect | Pointer to a rectangle specified in user space coordinates. |
|
pure virtual |
Method puts string to specified key in the dictionary.
| key | The name of the key under which the object is stored. |
| value | string. |