Home | History | Annotate | Download | only in fpdfsdk

Lines Matching defs:pDoc

580   const CPDF_Document* pDoc = CPDFDocumentFromFPDFDocument(document);
581 if (!pDoc)
584 const CPDF_Dictionary* pRoot = pDoc->GetRoot();
653 CPDF_Document* pDoc = CPDFDocumentFromFPDFDocument(doc);
654 if (!pDoc)
657 const CPDF_Parser* pParser = pDoc->GetParser();
669 CPDF_Document* pDoc = CPDFDocumentFromFPDFDocument(document);
671 if (!pDoc) {
679 return pDoc->GetUserPermissions();
684 CPDF_Document* pDoc = CPDFDocumentFromFPDFDocument(document);
685 if (!pDoc || !pDoc->GetParser())
688 CPDF_Dictionary* pDict = pDoc->GetParser()->GetEncryptDict();
693 UnderlyingDocumentType* pDoc = UnderlyingFromFPDFDocument(document);
694 return pDoc ? pDoc->GetPageCount() : 0;
699 UnderlyingDocumentType* pDoc = UnderlyingFromFPDFDocument(document);
700 if (!pDoc)
703 if (page_index < 0 || page_index >= pDoc->GetPageCount())
707 return pDoc->GetXFAPage(page_index).Leak();
709 CPDF_Dictionary* pDict = pDoc->GetPage(page_index);
713 CPDF_Page* pPage = new CPDF_Page(pDoc, pDict, true);
1290 UnderlyingDocumentType* pDoc = UnderlyingFromFPDFDocument(document);
1291 if (!pDoc)
1295 int count = pDoc->GetPageCount();
1298 RetainPtr<CPDFXFA_Page> pPage = pDoc->GetXFAPage(page_index);
1304 CPDF_Dictionary* pDict = pDoc->GetPage(page_index);
1308 CPDF_Page page(pDoc, pDict, true);
1318 CPDF_Document* pDoc = CPDFDocumentFromFPDFDocument(document);
1319 if (!pDoc)
1321 CPDF_ViewerPreferences viewRef(pDoc);
1327 CPDF_Document* pDoc = CPDFDocumentFromFPDFDocument(document);
1328 if (!pDoc)
1330 CPDF_ViewerPreferences viewRef(pDoc);
1336 CPDF_Document* pDoc = CPDFDocumentFromFPDFDocument(document);
1337 if (!pDoc)
1339 CPDF_ViewerPreferences viewRef(pDoc);
1345 CPDF_Document* pDoc = CPDFDocumentFromFPDFDocument(document);
1346 if (!pDoc)
1348 CPDF_ViewerPreferences viewRef(pDoc);
1364 CPDF_Document* pDoc = CPDFDocumentFromFPDFDocument(document);
1365 if (!pDoc)
1368 CPDF_ViewerPreferences viewRef(pDoc);
1381 CPDF_Document* pDoc = CPDFDocumentFromFPDFDocument(document);
1382 if (!pDoc)
1385 const CPDF_Dictionary* pRoot = pDoc->GetRoot();
1389 CPDF_NameTree nameTree(pDoc, "Dests");
1406 CPDF_Document* pDoc = CPDFDocumentFromFPDFDocument(document);
1407 if (!pDoc)
1410 CPDF_NameTree name_tree(pDoc, "Dests");
1411 return name_tree.LookupNamedDest(pDoc, PDF_DecodeText(ByteString(name)));
1472 CPDF_Document* pDoc = CPDFDocumentFromFPDFDocument(document);
1473 if (!pDoc)
1476 const CPDF_Dictionary* pRoot = pDoc->GetRoot();
1482 CPDF_NameTree nameTree(pDoc, "Dests");