Home
last modified time | relevance | path

Searched refs:pPage (Results 1 – 25 of 67) sorted by relevance

123

/external/pdfium/fpdfsdk/
Dfpdfeditpage.cpp56 bool IsPageObject(CPDF_Page* pPage) { in IsPageObject() argument
57 if (!pPage || !pPage->m_pFormDict || !pPage->m_pFormDict->KeyExist("Type")) in IsPageObject()
60 CPDF_Object* pObject = pPage->m_pFormDict->GetObjectFor("Type")->GetDirect(); in IsPageObject()
159 auto pPage = pdfium::MakeUnique<CPDF_Page>(pDoc, pPageDict, true); in FPDFPage_New() local
160 pPage->ParseContent(); in FPDFPage_New()
161 return pPage.release(); // Caller takes ownership. in FPDFPage_New()
166 CPDF_Page* pPage = CPDFPageFromFPDFPage(page); in FPDFPage_GetRotation() local
167 return IsPageObject(pPage) ? pPage->GetPageRotation() : -1; in FPDFPage_GetRotation()
177 CPDF_Page* pPage = CPDFPageFromFPDFPage(page); in FPDFPage_InsertObject() local
178 if (!IsPageObject(pPage)) in FPDFPage_InsertObject()
[all …]
Dfpdfview.cpp74 CPDF_Page* pPage, in RenderPageImpl() argument
112 pdfium::MakeRetain<CPDF_OCContext>(pPage->m_pDocument.Get(), usage)); in RenderPageImpl()
116 pContext->m_pContext = pdfium::MakeUnique<CPDF_RenderContext>(pPage); in RenderPageImpl()
117 pContext->m_pContext->AppendLayer(pPage, &matrix); in RenderPageImpl()
120 pContext->m_pAnnots = pdfium::MakeUnique<CPDF_AnnotList>(pPage); in RenderPageImpl()
122 pContext->m_pAnnots->DisplayAnnots(pPage, pContext->m_pContext.get(), in RenderPageImpl()
713 CPDF_Page* pPage = new CPDF_Page(pDoc, pDict, true); in FPDF_LoadPage() local
714 pPage->ParseContent(); in FPDF_LoadPage()
715 return pPage; in FPDF_LoadPage()
720 UnderlyingPageType* pPage = UnderlyingFromFPDFPage(page); in FPDF_GetPageWidth() local
[all …]
Dfpdf_transformpage.cpp68 CPDF_Page* pPage = CPDFPageFromFPDFPage(page); in FPDFPage_SetMediaBox() local
69 if (!pPage) in FPDFPage_SetMediaBox()
72 SetBoundingBox(pPage, "MediaBox", left, bottom, right, top); in FPDFPage_SetMediaBox()
80 CPDF_Page* pPage = CPDFPageFromFPDFPage(page); in FPDFPage_SetCropBox() local
81 if (!pPage) in FPDFPage_SetCropBox()
84 SetBoundingBox(pPage, "CropBox", left, bottom, right, top); in FPDFPage_SetCropBox()
92 CPDF_Page* pPage = CPDFPageFromFPDFPage(page); in FPDFPage_GetMediaBox() local
93 return pPage && GetBoundingBox(pPage, "MediaBox", left, bottom, right, top); in FPDFPage_GetMediaBox()
101 CPDF_Page* pPage = CPDFPageFromFPDFPage(page); in FPDFPage_GetCropBox() local
102 return pPage && GetBoundingBox(pPage, "CropBox", left, bottom, right, top); in FPDFPage_GetCropBox()
[all …]
Dfpdf_progressive.cpp45 CPDF_Page* pPage = CPDFPageFromFPDFPage(page); in FPDF_RenderPageBitmap_Start() local
46 if (!pPage) in FPDF_RenderPageBitmap_Start()
51 pPage->SetRenderContext(std::move(pOwnedContext)); in FPDF_RenderPageBitmap_Start()
79 CPDF_Page* pPage = CPDFPageFromFPDFPage(page); in FPDF_RenderPage_Continue() local
80 if (!pPage) in FPDF_RenderPage_Continue()
83 CPDF_PageRenderContext* pContext = pPage->GetRenderContext(); in FPDF_RenderPage_Continue()
99 CPDF_Page* pPage = CPDFPageFromFPDFPage(page); in FPDF_RenderPage_Close() local
100 if (pPage) { in FPDF_RenderPage_Close()
102 CPDF_PageRenderContext* pContext = pPage->GetRenderContext(); in FPDF_RenderPage_Close()
109 pPage->SetRenderContext(nullptr); in FPDF_RenderPage_Close()
Dfpdfannot.cpp147 CPDF_Page* pPage, in CPDF_AnnotContext() argument
149 : m_pAnnotDict(pAnnotDict), m_pPage(pPage) { in CPDF_AnnotContext()
211 CPDF_Page* pPage = CPDFPageFromFPDFPage(page); in FPDFPage_CreateAnnot() local
212 if (!pPage || !FPDFAnnot_IsSupportedSubtype(subtype)) in FPDFPage_CreateAnnot()
216 pPage->m_pDocument->GetByteStringPool()); in FPDFPage_CreateAnnot()
222 pdfium::MakeUnique<CPDF_AnnotContext>(pDict.get(), pPage, nullptr); in FPDFPage_CreateAnnot()
224 CPDF_Array* pAnnotList = pPage->m_pFormDict->GetArrayFor("Annots"); in FPDFPage_CreateAnnot()
226 pAnnotList = pPage->m_pFormDict->SetNewFor<CPDF_Array>("Annots"); in FPDFPage_CreateAnnot()
233 CPDF_Page* pPage = CPDFPageFromFPDFPage(page); in FPDFPage_GetAnnotCount() local
234 if (!pPage || !pPage->m_pFormDict) in FPDFPage_GetAnnotCount()
[all …]
Dfpdfformfill.cpp114 UnderlyingPageType* pPage = UnderlyingFromFPDFPage(page); in FormHandleToPageView() local
115 if (!pPage) in FormHandleToPageView()
120 return pFormFillEnv ? pFormFillEnv->GetPageView(pPage, true) : nullptr; in FormHandleToPageView()
146 UnderlyingPageType* pPage = UnderlyingFromFPDFPage(page); in FFLCommon() local
147 if (!pPage) in FFLCommon()
151 CPDFXFA_Context* pContext = pPage->GetContext(); in FFLCommon()
164 pPage->GetDisplayMatrix(start_x, start_y, size_x, size_y, rotate); in FFLCommon()
194 if (CPDFSDK_PageView* pPageView = pFormFillEnv->GetPageView(pPage, true)) in FFLCommon()
198 pPage->m_pDocument.Get(), CPDF_OCContext::View)); in FFLCommon()
199 if (CPDFSDK_PageView* pPageView = FormHandleToPageView(hHandle, pPage)) in FFLCommon()
[all …]
Dfpdfeditimg.cpp59 CPDF_Page* pPage = CPDFPageFromFPDFPage(pages[index]); in LoadJpegHelper() local
60 if (pPage) in LoadJpegHelper()
61 pImgObj->GetImage()->ResetCache(pPage, nullptr); in LoadJpegHelper()
132 CPDF_Page* pPage = CPDFPageFromFPDFPage(pages[index]); in FPDFImageObj_SetBitmap() local
133 if (pPage) in FPDFImageObj_SetBitmap()
134 pImgObj->GetImage()->ResetCache(pPage, nullptr); in FPDFImageObj_SetBitmap()
288 CPDF_Page* pPage = CPDFPageFromFPDFPage(page); in FPDFImageObj_GetImageMetadata() local
289 if (!pPage || !pPage->m_pDocument.Get() || !pImg->GetStream()) in FPDFImageObj_GetImageMetadata()
293 if (!pSource->StartLoadDIBSource(pPage->m_pDocument.Get(), pImg->GetStream(), in FPDFImageObj_GetImageMetadata()
295 pPage->m_pPageResources.Get())) { in FPDFImageObj_GetImageMetadata()
Dcfx_systemhandler.cpp47 UnderlyingPageType* pPage = widget->GetUnderlyingPage(); in InvalidateRect() local
48 if (!pPage || !pPageView) in InvalidateRect()
62 m_pFormFillEnv->Invalidate(pPage, rcPDF.GetOuterRect()); in InvalidateRect()
74 UnderlyingPageType* pPage = pAnnot->GetUnderlyingPage(); in OutputSelectedRect() local
75 ASSERT(pPage); in OutputSelectedRect()
77 m_pFormFillEnv->OutputSelectedRect(pPage, in OutputSelectedRect()
Dfpdfdoc.cpp260 CPDF_Page* pPage = CPDFPageFromFPDFPage(page); in FPDFLink_GetLinkAtPoint() local
261 if (!pPage) in FPDFLink_GetLinkAtPoint()
264 CPDF_LinkList* pLinkList = GetLinkList(pPage); in FPDFLink_GetLinkAtPoint()
269 ->GetLinkAtPoint(pPage, in FPDFLink_GetLinkAtPoint()
278 CPDF_Page* pPage = CPDFPageFromFPDFPage(page); in FPDFLink_GetLinkZOrderAtPoint() local
279 if (!pPage) in FPDFLink_GetLinkZOrderAtPoint()
282 CPDF_LinkList* pLinkList = GetLinkList(pPage); in FPDFLink_GetLinkZOrderAtPoint()
288 pPage, CFX_PointF(static_cast<float>(x), static_cast<float>(y)), in FPDFLink_GetLinkZOrderAtPoint()
324 CPDF_Page* pPage = CPDFPageFromFPDFPage(page); in FPDFLink_Enumerate() local
325 if (!pPage || !pPage->m_pFormDict) in FPDFLink_Enumerate()
[all …]
Dcpdfsdk_pageview.cpp87 CPDFXFA_Page* pPage = GetPDFXFAPage(); local
88 if (!pPage)
91 if (pPage->GetContext()->GetFormType() == FormType::kXFAFull) {
99 CXFA_FFPageView* xfaView = pPage->GetXFAPageView();
178 CPDFXFA_Page* pPage = pAnnot->GetPDFXFAPage(); local
179 if (!pPage || !pPage->GetContext()->ContainsXFAForm())
451 CPDF_Page* pPage = GetPDFPage(); local
452 ASSERT(pPage);
456 m_pAnnotList = pdfium::MakeUnique<CPDF_AnnotList>(pPage);
Dfpdf_structtree.cpp42 CPDF_Page* pPage = CPDFPageFromFPDFPage(page); in FPDF_StructTree_GetForPage() local
43 if (!pPage) in FPDF_StructTree_GetForPage()
45 return CPDF_StructTree::LoadPage(pPage->m_pDocument.Get(), in FPDF_StructTree_GetForPage()
46 pPage->m_pFormDict.Get()) in FPDF_StructTree_GetForPage()
Dcpdfsdk_annothandlermgr.cpp218 CPDFSDK_PageView* pPage = pAnnot->GetPageView(); in Annot_OnKeyDown() local
219 CPDFSDK_Annot* pFocusAnnot = pPage->GetFocusAnnot(); in Annot_OnKeyDown()
224 pPage->GetFormFillEnv()->SetFocusAnnot(&pNext); in Annot_OnKeyDown()
291 CPDFXFA_Page* pPage = pPageView->GetPDFXFAPage(); in GetNextAnnot() local
292 if (!pPage) in GetNextAnnot()
294 if (pPage->GetPDFPage()) { // for pdf annots. in GetNextAnnot()
303 pPage->GetXFAPageView()->CreateWidgetIterator( in GetNextAnnot()
Dfpdf_flatten.cpp183 CPDF_Dictionary* pPage, in SetPageContents() argument
186 CPDF_Stream* pContentsStream = pPage->GetStreamFor("Contents"); in SetPageContents()
188 pContentsArray = pPage->GetArrayFor("Contents"); in SetPageContents()
191 pPage->SetNewFor<CPDF_Reference>( in SetPageContents()
197 pPage->ConvertToIndirectObjectFor("Contents", pDocument); in SetPageContents()
209 pPage->SetNewFor<CPDF_Reference>("Contents", pDocument, in SetPageContents()
238 CPDF_Page* pPage = CPDFPageFromFPDFPage(page); in FPDFPage_Flatten() local
242 CPDF_Document* pDocument = pPage->m_pDocument.Get(); in FPDFPage_Flatten()
243 CPDF_Dictionary* pPageDict = pPage->m_pFormDict.Get(); in FPDFPage_Flatten()
Dcpdfsdk_widgethandler.cpp49 CPDF_Page* pPage = pWidget->GetPDFPage(); in CanAnswer() local
50 uint32_t dwPermissions = pPage->m_pDocument->GetUserPermissions(); in CanAnswer()
56 CPDFSDK_PageView* pPage) { in NewAnnot() argument
63 CPDFSDK_Widget* pWidget = new CPDFSDK_Widget(pAnnot, pPage, pInterForm); in NewAnnot()
74 CPDFSDK_PageView* pPage) { in NewAnnot() argument
/external/pdfium/core/fpdfdoc/
Dcpdf_dest.cpp46 CPDF_Object* pPage = pArray->GetDirectObjectAt(0); in GetPageIndex() local
47 if (!pPage) in GetPageIndex()
49 if (pPage->IsNumber()) in GetPageIndex()
50 return pPage->GetInteger(); in GetPageIndex()
51 if (!pPage->IsDictionary()) in GetPageIndex()
53 return pDoc->GetPageIndex(pPage->GetObjNum()); in GetPageIndex()
61 CPDF_Object* pPage = pArray->GetDirectObjectAt(0); in GetPageObjNum() local
62 if (!pPage) in GetPageObjNum()
64 if (pPage->IsNumber()) in GetPageObjNum()
65 return pPage->GetInteger(); in GetPageObjNum()
[all …]
Dcpdf_annotlist.cpp32 CPDF_Page* pPage) { in CreatePopupAnnot() argument
56 if (rect.left + popupRect.Width() > pPage->GetPageWidth() && in CreatePopupAnnot()
65 std::min(rect.left, pPage->GetPageWidth() - popupRect.Width()), in CreatePopupAnnot()
121 CPDF_AnnotList::CPDF_AnnotList(CPDF_Page* pPage) in CPDF_AnnotList() argument
122 : m_pDocument(pPage->m_pDocument.Get()) { in CPDF_AnnotList()
123 if (!pPage->m_pFormDict) in CPDF_AnnotList()
126 CPDF_Array* pAnnots = pPage->m_pFormDict->GetArrayFor("Annots"); in CPDF_AnnotList()
154 CreatePopupAnnot(m_AnnotList[i].get(), m_pDocument, pPage)); in CPDF_AnnotList()
162 void CPDF_AnnotList::DisplayPass(CPDF_Page* pPage, in DisplayPass() argument
203 pAnnot->DrawInContext(pPage, pContext, &matrix, CPDF_Annot::Normal); in DisplayPass()
[all …]
Dcpdf_linklist.cpp17 CPDF_Page* pPage) { in GetPageLinks() argument
18 uint32_t objnum = pPage->m_pFormDict->GetObjNum(); in GetPageLinks()
28 LoadPageLinks(pPage, &page_link_list); in GetPageLinks()
32 CPDF_Link CPDF_LinkList::GetLinkAtPoint(CPDF_Page* pPage, in GetLinkAtPoint() argument
35 const std::vector<CPDF_Dictionary*>* pPageLinkList = GetPageLinks(pPage); in GetLinkAtPoint()
56 void CPDF_LinkList::LoadPageLinks(CPDF_Page* pPage, in LoadPageLinks() argument
58 CPDF_Array* pAnnotList = pPage->m_pFormDict->GetArrayFor("Annots"); in LoadPageLinks()
Dcpdf_annotlist.h25 explicit CPDF_AnnotList(CPDF_Page* pPage);
28 void DisplayAnnots(CPDF_Page* pPage,
35 void DisplayAnnots(CPDF_Page* pPage,
51 void DisplayPass(CPDF_Page* pPage,
Dcpdf_linklist.h24 CPDF_Link GetLinkAtPoint(CPDF_Page* pPage,
29 const std::vector<CPDF_Dictionary*>* GetPageLinks(CPDF_Page* pPage);
30 void LoadPageLinks(CPDF_Page* pPage, std::vector<CPDF_Dictionary*>* pList);
Dcpdf_annot.cpp46 CPDF_Form* AnnotGetMatrix(const CPDF_Page* pPage, in AnnotGetMatrix() argument
51 CPDF_Form* pForm = pAnnot->GetAPForm(pPage, mode); in AnnotGetMatrix()
189 CPDF_Form* CPDF_Annot::GetAPForm(const CPDF_Page* pPage, AppearanceMode mode) { in GetAPForm() argument
199 m_pDocument.Get(), pPage->m_pResources.Get(), pStream); in GetAPForm()
351 bool CPDF_Annot::DrawAppearance(CPDF_Page* pPage, in DrawAppearance() argument
367 CPDF_Form* pForm = AnnotGetMatrix(pPage, this, mode, &mtUser2Device, &matrix); in DrawAppearance()
371 CPDF_RenderContext context(pPage); in DrawAppearance()
377 bool CPDF_Annot::DrawInContext(const CPDF_Page* pPage, in DrawInContext() argument
392 CPDF_Form* pForm = AnnotGetMatrix(pPage, this, mode, pUser2Device, &matrix); in DrawInContext()
Dcpdf_annot.h82 bool DrawAppearance(CPDF_Page* pPage,
87 bool DrawInContext(const CPDF_Page* pPage,
96 CPDF_Form* GetAPForm(const CPDF_Page* pPage, AppearanceMode mode);
/external/pdfium/fpdfsdk/fpdfxfa/
Dcpdfxfa_context.cpp157 auto pPage = pdfium::MakeRetain<CPDFXFA_Page>(this, page_index); in GetXFAPage() local
158 if (!pPage->LoadPage()) in GetXFAPage()
162 m_XFAPageList[page_index] = pPage; in GetXFAPage()
164 return pPage; in GetXFAPage()
168 CXFA_FFPageView* pPage) const { in GetXFAPage()
169 if (!pPage) in GetXFAPage()
179 if (pTempPage && pTempPage->GetXFAPageView() == pPage) in GetXFAPage()
Dcpdfxfa_docenvironment.cpp62 RetainPtr<CPDFXFA_Page> pPage = m_pContext->GetXFAPage(pPageView); in InvalidateRect() local
63 if (!pPage) in InvalidateRect()
70 pFormFillEnv->Invalidate(pPage.Get(), rt.ToFloatRect().ToFxRect()); in InvalidateRect()
92 RetainPtr<CPDFXFA_Page> pPage = m_pContext->GetXFAPage(pPageView); in DisplayCaret() local
93 if (!pPage) in DisplayCaret()
101 pFormFillEnv->DisplayCaret(pPage.Get(), bVisible, rcCaret.left, rcCaret.top, in DisplayCaret()
117 RetainPtr<CPDFXFA_Page> pPage = m_pContext->GetXFAPage(pXFAPageView); in GetPopupPos() local
118 if (!pPage) in GetPopupPos()
126 pFormFillEnv->GetPageViewRect(pPage.Get(), pageViewRect); in GetPopupPos()
229 RetainPtr<CPDFXFA_Page> pPage = m_pContext->GetXFAPage(pXFAPageView); in PopupMenu() local
[all …]
/external/pdfium/core/fpdfapi/page/
Dcpdf_contentparser.cpp25 CPDF_ContentParser::CPDF_ContentParser(CPDF_Page* pPage) in CPDF_ContentParser() argument
26 : m_InternalStage(STAGE_GETCONTENT), m_pObjectHolder(pPage) { in CPDF_ContentParser()
27 if (!pPage || !pPage->m_pDocument || !pPage->m_pFormDict) { in CPDF_ContentParser()
32 CPDF_Object* pContent = pPage->m_pFormDict->GetDirectObjectFor("Contents"); in CPDF_ContentParser()
/external/pdfium/core/fpdfapi/render/
Dcpdf_rendercontext.cpp23 CPDF_RenderContext::CPDF_RenderContext(CPDF_Page* pPage) in CPDF_RenderContext() argument
24 : m_pDocument(pPage->m_pDocument.Get()), in CPDF_RenderContext()
25 m_pPageResources(pPage->m_pPageResources.Get()), in CPDF_RenderContext()
26 m_pPageCache(pPage->GetRenderCache()) {} in CPDF_RenderContext()

123