// static. IPDF_StructTree* IPDF_StructTree::LoadDoc(const CPDF_Document* pDoc) { if (!IsTagged(pDoc)) return nullptr; CPDF_StructTreeImpl* pTree = new CPDF_StructTreeImpl(pDoc); pTree->LoadDocTree(); return pTree; }
// static IPDF_StructTree* IPDF_StructTree::LoadPage(const CPDF_Document* pDoc, const CPDF_Dictionary* pPageDict) { if (!IsTagged(pDoc)) return nullptr; CPDF_StructTreeImpl* pTree = new CPDF_StructTreeImpl(pDoc); pTree->LoadPageTree(pPageDict); return pTree; }
CPDF_StructTree* CPDF_StructTree::LoadDoc(const CPDF_Document* pDoc) { if (!IsTagged(pDoc)) { return NULL; } CPDF_StructTreeImpl* pTree = FX_NEW CPDF_StructTreeImpl(pDoc); if (pTree == NULL) { return NULL; } pTree->LoadDocTree(); return pTree; }
CPDF_StructTree* CPDF_StructTree::LoadPage(const CPDF_Document* pDoc, const CPDF_Dictionary* pPageDict) { if (!IsTagged(pDoc)) { return NULL; } CPDF_StructTreeImpl* pTree = FX_NEW CPDF_StructTreeImpl(pDoc); if (pTree == NULL) { return NULL; } pTree->LoadPageTree(pPageDict); return pTree; }