Finishing of outline items

This commit is contained in:
Jakub Melka
2019-11-30 16:26:32 +01:00
parent 39059c645e
commit 5954b7f409
21 changed files with 702 additions and 21 deletions

View File

@@ -53,11 +53,8 @@ public:
private:
static void parseImpl(Objects& objects, const PDFDocument* document, const PDFObject& root)
{
const PDFObject& dereferencedRoot = document->getObject(root);
if (dereferencedRoot.isDictionary())
if (const PDFDictionary* dictionary = document->getDictionaryFromObject(root))
{
const PDFDictionary* dictionary = dereferencedRoot.getDictionary();
// First, load the objects into the array
const PDFObject& numberedItems = document->getObject(dictionary->get("Nums"));
if (numberedItems.isArray())