CPDF_Dictionary dict = ... // assume dict has been properly initialized CPDF_Dictionary* nestedDict = dict.GetDictFor("Name"); if (nestedDict) { // do something with the nested dictionary }
CPDF_Dictionary dict = ... // assume dict has been properly initialized CPDF_Dictionary* nestedDict = dict.GetDictFor("Name.SubName"); if (nestedDict) { // do something with the nested dictionary }In this example, GetDictFor is called with a nested key "Name.SubName". This means that the function will search for a dictionary with the key "Name", and then search within that dictionary for a key of "SubName". If both keys are found, a pointer to the nested dictionary is returned. CPDF_Dictionary is part of the Foxit PDF SDK, a C++ library for working with PDF documents.