Lines Matching refs:pDoc
177 const CPDF_Document* pDoc = CPDFDocumentFromFPDFDocument(document); in FPDF_GetFormType() local
178 if (!pDoc) in FPDF_GetFormType()
181 const CPDF_Dictionary* pRoot = pDoc->GetRoot(); in FPDF_GetFormType()
199 auto* pDoc = CPDFDocumentFromFPDFDocument(document); in FPDF_LoadXFA() local
200 if (!pDoc) in FPDF_LoadXFA()
203 auto* pContext = static_cast<CPDFXFA_Context*>(pDoc->GetExtension()); in FPDF_LoadXFA()
233 CPDF_Document* pDoc = CPDFDocumentFromFPDFDocument(doc); in FPDF_GetFileVersion() local
234 if (!pDoc) in FPDF_GetFileVersion()
237 const CPDF_Parser* pParser = pDoc->GetParser(); in FPDF_GetFileVersion()
247 CPDF_Document* pDoc = CPDFDocumentFromFPDFDocument(document); in FPDF_DocumentHasValidCrossReferenceTable() local
248 return pDoc && pDoc->has_valid_cross_reference_table(); in FPDF_DocumentHasValidCrossReferenceTable()
253 CPDF_Document* pDoc = CPDFDocumentFromFPDFDocument(document); in FPDF_GetDocPermissions() local
254 return pDoc ? pDoc->GetUserPermissions() : 0; in FPDF_GetDocPermissions()
259 CPDF_Document* pDoc = CPDFDocumentFromFPDFDocument(document); in FPDF_GetSecurityHandlerRevision() local
260 if (!pDoc || !pDoc->GetParser()) in FPDF_GetSecurityHandlerRevision()
263 const CPDF_Dictionary* pDict = pDoc->GetParser()->GetEncryptDict(); in FPDF_GetSecurityHandlerRevision()
268 auto* pDoc = CPDFDocumentFromFPDFDocument(document); in FPDF_GetPageCount() local
269 if (!pDoc) in FPDF_GetPageCount()
272 auto* pExtension = pDoc->GetExtension(); in FPDF_GetPageCount()
273 return pExtension ? pExtension->GetPageCount() : pDoc->GetPageCount(); in FPDF_GetPageCount()
278 auto* pDoc = CPDFDocumentFromFPDFDocument(document); in FPDF_LoadPage() local
279 if (!pDoc) in FPDF_LoadPage()
286 auto* pContext = static_cast<CPDFXFA_Context*>(pDoc->GetExtension()); in FPDF_LoadPage()
291 CPDF_Dictionary* pDict = pDoc->GetPageDictionary(page_index); in FPDF_LoadPage()
295 auto pPage = pdfium::MakeRetain<CPDF_Page>(pDoc, pDict); in FPDF_LoadPage()
863 auto* pDoc = CPDFDocumentFromFPDFDocument(document); in FPDF_GetPageSizeByIndexF() local
864 if (!pDoc) in FPDF_GetPageSizeByIndexF()
871 auto* pContext = static_cast<CPDFXFA_Context*>(pDoc->GetExtension()); in FPDF_GetPageSizeByIndexF()
883 CPDF_Dictionary* pDict = pDoc->GetPageDictionary(page_index); in FPDF_GetPageSizeByIndexF()
887 auto page = pdfium::MakeRetain<CPDF_Page>(pDoc, pDict); in FPDF_GetPageSizeByIndexF()
912 const CPDF_Document* pDoc = CPDFDocumentFromFPDFDocument(document); in FPDF_VIEWERREF_GetPrintScaling() local
913 if (!pDoc) in FPDF_VIEWERREF_GetPrintScaling()
915 CPDF_ViewerPreferences viewRef(pDoc); in FPDF_VIEWERREF_GetPrintScaling()
921 const CPDF_Document* pDoc = CPDFDocumentFromFPDFDocument(document); in FPDF_VIEWERREF_GetNumCopies() local
922 if (!pDoc) in FPDF_VIEWERREF_GetNumCopies()
924 CPDF_ViewerPreferences viewRef(pDoc); in FPDF_VIEWERREF_GetNumCopies()
930 const CPDF_Document* pDoc = CPDFDocumentFromFPDFDocument(document); in FPDF_VIEWERREF_GetPrintPageRange() local
931 if (!pDoc) in FPDF_VIEWERREF_GetPrintPageRange()
933 CPDF_ViewerPreferences viewRef(pDoc); in FPDF_VIEWERREF_GetPrintPageRange()
954 const CPDF_Document* pDoc = CPDFDocumentFromFPDFDocument(document); in FPDF_VIEWERREF_GetDuplex() local
955 if (!pDoc) in FPDF_VIEWERREF_GetDuplex()
957 CPDF_ViewerPreferences viewRef(pDoc); in FPDF_VIEWERREF_GetDuplex()
973 const CPDF_Document* pDoc = CPDFDocumentFromFPDFDocument(document); in FPDF_VIEWERREF_GetName() local
974 if (!pDoc) in FPDF_VIEWERREF_GetName()
977 CPDF_ViewerPreferences viewRef(pDoc); in FPDF_VIEWERREF_GetName()
990 CPDF_Document* pDoc = CPDFDocumentFromFPDFDocument(document); in FPDF_CountNamedDests() local
991 if (!pDoc) in FPDF_CountNamedDests()
994 const CPDF_Dictionary* pRoot = pDoc->GetRoot(); in FPDF_CountNamedDests()
998 CPDF_NameTree nameTree(pDoc, "Dests"); in FPDF_CountNamedDests()
1015 CPDF_Document* pDoc = CPDFDocumentFromFPDFDocument(document); in FPDF_GetNamedDestByName() local
1016 if (!pDoc) in FPDF_GetNamedDestByName()
1019 CPDF_NameTree name_tree(pDoc, "Dests"); in FPDF_GetNamedDestByName()
1022 name_tree.LookupNamedDest(pDoc, PDF_DecodeText(name_view.raw_span()))); in FPDF_GetNamedDestByName()
1091 CPDF_Document* pDoc = CPDFDocumentFromFPDFDocument(document); in FPDF_GetNamedDest() local
1092 if (!pDoc) in FPDF_GetNamedDest()
1095 const CPDF_Dictionary* pRoot = pDoc->GetRoot(); in FPDF_GetNamedDest()
1101 CPDF_NameTree nameTree(pDoc, "Dests"); in FPDF_GetNamedDest()