The CPDF_Dictionary is a class in C++ that represents a PDF dictionary object. It is part of the PDFium library.
The GetObjNum function of the CPDF_Dictionary class is used to get the object number of the dictionary.
Example 1: CPDF_Dictionary dict; int objNum = dict.GetObjNum(); // returns the object number of the dictionary
Example 2: CPDF_Object* pObj = ... if (pObj->IsDictionary()) { CPDF_Dictionary* pDict = pObj->GetDict(); int objNum = pDict->GetObjNum(); // returns the object number of the dictionary }
In this example, we first check if the object pointer pObj is a dictionary object. If it is, we get a pointer to the dictionary using the GetDict() function. We then call the GetObjNum() function on the dictionary pointer to get the object number of the dictionary.
This code example uses the PDFium library.
C++ (Cpp) CPDF_Dictionary::GetObjNum - 15 examples found. These are the top rated real world C++ (Cpp) examples of CPDF_Dictionary::GetObjNum extracted from open source projects. You can rate examples to help us improve the quality of examples.