/external/pdfium/fpdfsdk/ |
fpdfcatalog.cpp | 12 CPDF_Document* pDoc = CPDFDocumentFromFPDFDocument(document); 13 if (!pDoc) 16 const CPDF_Dictionary* pCatalog = pDoc->GetRoot();
|
fpdf_dataavail.cpp | 162 CPDF_Document* pDoc = CPDFDocumentFromFPDFDocument(doc); 163 return pDoc ? pDoc->GetParser()->GetFirstPageNo() : 0;
|
fpdf_ext.cpp | 49 void CheckUnSupportAnnot(CPDF_Document* pDoc, const CPDF_Annot* pPDFAnnot) { 117 void CheckUnSupportError(CPDF_Document* pDoc, uint32_t err_code) { 123 if (!pDoc) 127 const CPDF_Dictionary* pRootDict = pDoc->GetRoot(); 157 CPDF_Metadata metaData(pDoc); 164 CPDF_InterForm interform(pDoc); 171 CPDF_Document* pDoc = CPDFDocumentFromFPDFDocument(document); 172 if (!pDoc) 175 const CPDF_Dictionary* pRoot = pDoc->GetRoot();
|
fpdfeditimg.cpp | 77 CPDF_Document* pDoc = CPDFDocumentFromFPDFDocument(document); 78 if (!pDoc) 82 pImageObj->SetImage(pdfium::MakeRetain<CPDF_Image>(pDoc));
|
fpdf_transformpage.cpp | 136 CPDF_Document* pDoc = pPage->m_pDocument.Get(); 137 if (!pDoc) 140 CPDF_Stream* pStream = pDoc->NewIndirect<CPDF_Stream>( 142 pdfium::MakeUnique<CPDF_Dictionary>(pDoc->GetByteStringPool())); 145 CPDF_Stream* pEndStream = pDoc->NewIndirect<CPDF_Stream>( 147 pdfium::MakeUnique<CPDF_Dictionary>(pDoc->GetByteStringPool())); 151 pContentArray->InsertNewAt<CPDF_Reference>(0, pDoc, pStream->GetObjNum()); 152 pContentArray->AddNew<CPDF_Reference>(pDoc, pEndStream->GetObjNum()); 154 CPDF_Array* pContentArray = pDoc->NewIndirect<CPDF_Array>(); 155 pContentArray->AddNew<CPDF_Reference>(pDoc, pStream->GetObjNum()) [all...] |
fpdfattachment.cpp | 51 CPDF_Document* pDoc = CPDFDocumentFromFPDFDocument(document); 52 if (!pDoc) 55 return CPDF_NameTree(pDoc, "EmbeddedFiles").GetCount(); 60 CPDF_Document* pDoc = CPDFDocumentFromFPDFDocument(document); 63 if (!pDoc || wsName.IsEmpty()) 66 CPDF_Dictionary* pRoot = pDoc->GetRoot(); 73 pNames = pDoc->NewIndirect<CPDF_Dictionary>(); 74 pRoot->SetNewFor<CPDF_Reference>("Names", pDoc, pNames->GetObjNum()); 79 CPDF_Dictionary* pFiles = pDoc->NewIndirect<CPDF_Dictionary>(); 81 pNames->SetNewFor<CPDF_Reference>("EmbeddedFiles", pDoc, [all...] |
cpdfsdk_pageview.cpp | 525 CPDF_Document* pDoc = m_pFormFillEnv->GetPDFDocument(); 526 return (pDoc && pDict) ? pDoc->GetPageIndex(pDict->GetObjNum()) : -1;
|
fpdfdoc.cpp | 56 CPDF_Document* pDoc = page->m_pDocument.Get(); 57 std::unique_ptr<CPDF_LinkList>* pHolder = pDoc->LinksContext(); 67 CPDF_Document* pDoc = CPDFDocumentFromFPDFDocument(document); 68 if (!pDoc) 70 CPDF_BookmarkTree tree(pDoc); 80 CPDF_Document* pDoc = CPDFDocumentFromFPDFDocument(document); 81 if (!pDoc) 83 CPDF_BookmarkTree tree(pDoc); 102 CPDF_Document* pDoc = CPDFDocumentFromFPDFDocument(document); 103 if (!pDoc) [all...] |
fpdfeditpage.cpp | 99 auto pDoc = pdfium::MakeUnique<CPDF_Document>(nullptr); 100 pDoc->CreateNewDoc(); 115 CPDF_Dictionary* pInfoDict = pDoc->GetInfo(); 122 // Caller takes ownership of pDoc. 123 return FPDFDocumentFromCPDFDocument(pDoc.release()); 128 if (UnderlyingDocumentType* pDoc = UnderlyingFromFPDFDocument(document)) 129 pDoc->DeletePage(page_index); 136 CPDF_Document* pDoc = CPDFDocumentFromFPDFDocument(document); 137 if (!pDoc) 140 page_index = pdfium::clamp(page_index, 0, pDoc->GetPageCount()) [all...] |
fpdfedittext.cpp | 30 CPDF_Dictionary* LoadFontDesc(CPDF_Document* pDoc, 36 CPDF_Dictionary* fontDesc = pDoc->NewIndirect<CPDF_Dictionary>(); 72 CPDF_Stream* pStream = pDoc->NewIndirect<CPDF_Stream>(); 80 fontDesc->SetNewFor<CPDF_Reference>(fontFile, pDoc, pStream->GetObjNum()); 130 CPDF_Stream* LoadUnicode(CPDF_Document* pDoc, 234 CPDF_Stream* stream = pDoc->NewIndirect<CPDF_Stream>(); 241 void* LoadSimpleFont(CPDF_Document* pDoc, 246 CPDF_Dictionary* fontDict = pDoc->NewIndirect<CPDF_Dictionary>(); 260 CPDF_Array* widthsArray = pDoc->NewIndirect<CPDF_Array>(); 273 fontDict->SetNewFor<CPDF_Reference>("Widths", pDoc, widthsArray->GetObjNum()) [all...] |
cpdfsdk_baannot.cpp | 316 CPDF_Document* pDoc = m_pPageView->GetPDFDocument(); 318 pDict = pDoc->AddIndirectObject(pDict->Clone())->AsDictionary(); 319 m_pAnnot->GetAnnotDict()->SetNewFor<CPDF_Reference>("A", pDoc,
|
fpdfview.cpp | 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) [all...] |
/external/pdfium/core/fpdfapi/parser/ |
cfdf_document.cpp | 26 auto pDoc = pdfium::MakeUnique<CFDF_Document>(); 27 pDoc->m_pRootDict = pDoc->NewIndirect<CPDF_Dictionary>(); 28 pDoc->m_pRootDict->SetNewFor<CPDF_Dictionary>("FDF"); 29 return pDoc; 34 auto pDoc = pdfium::MakeUnique<CFDF_Document>(); 35 pDoc->ParseStream(pdfium::MakeRetain<CFX_MemoryStream>(pData, size, false)); 36 return pDoc->m_pRootDict ? std::move(pDoc) : nullptr;
|
cpdf_document_unittest.cpp | 29 CPDF_Document* pDoc, 31 CPDF_Array* pUnowned = pDoc->AddIndirectObject(std::move(kids))->AsArray(); 32 CPDF_Dictionary* pageNode = pDoc->NewIndirect<CPDF_Dictionary>(); 34 pageNode->SetNewFor<CPDF_Reference>("Kids", pDoc, pUnowned->GetObjNum()); 37 pUnowned->GetDictAt(i)->SetNewFor<CPDF_Reference>("Parent", pDoc, 260 auto pDoc = pdfium::MakeUnique<CPDF_TestDocPagesWithoutKids>(); 261 EXPECT_TRUE(pDoc->GetPage(0)); 264 EXPECT_FALSE(pDoc->GetPage(i)); 266 EXPECT_TRUE(pDoc->GetPage(0));
|
/external/pdfium/core/fpdfapi/edit/ |
cpdf_pagecontentgenerator_unittest.cpp | 128 auto pDoc = pdfium::MakeUnique<CPDF_Document>(nullptr); 129 pDoc->CreateNewDoc(); 130 CPDF_Dictionary* pPageDict = pDoc->CreateNewPage(0); 131 auto pTestPage = pdfium::MakeUnique<CPDF_Page>(pDoc.get(), pPageDict, false); 167 auto pDoc = pdfium::MakeUnique<CPDF_Document>(nullptr); 168 pDoc->CreateNewDoc(); 169 CPDF_Dictionary* pPageDict = pDoc->CreateNewPage(0); 170 auto pTestPage = pdfium::MakeUnique<CPDF_Page>(pDoc.get(), pPageDict, false); 173 CPDF_Font* pFont = CPDF_Font::GetStockFont(pDoc.get(), "Times-Roman"); 230 auto pDoc = pdfium::MakeUnique<CPDF_Document>(nullptr) [all...] |
cpdf_pagecontentgenerator.cpp | 66 CPDF_Document* pDoc = m_pDocument.Get(); 86 CPDF_Stream* pStream = pDoc->NewIndirect<CPDF_Stream>(); 91 pArray->AddNew<CPDF_Reference>(pDoc, pStream->GetObjNum()); 108 pObjArray->AddNew<CPDF_Reference>(pDoc, pStream->GetObjNum()); 112 CPDF_Array* pContentArray = pDoc->NewIndirect<CPDF_Array>(); 113 pContentArray->AddNew<CPDF_Reference>(pDoc, pDirectObj->GetObjNum()); 114 pContentArray->AddNew<CPDF_Reference>(pDoc, pStream->GetObjNum()); 115 pPageDict->SetNewFor<CPDF_Reference>("Contents", pDoc,
|
/external/pdfium/fxjs/ |
cfxjse_engine.cpp | 177 CXFA_Document* pDoc = lpOrginalNode->GetDocument(); 178 CFXJSE_Engine* lpScriptContext = pDoc->GetScriptContext(); 198 CXFA_FFNotify* pNotify = pDoc->GetNotify(); 210 CXFA_Document* pDoc = pOriginalObject->GetDocument(); 211 CFXJSE_Engine* lpScriptContext = pDoc->GetScriptContext(); 255 CXFA_FFNotify* pNotify = pDoc->GetNotify();
|
cjs_document.cpp | 128 Document* pDoc = static_cast<Document*>(GetEmbedObject()); 129 pDoc->SetFormFillEnv(pRuntime->GetFormFillEnv()); [all...] |
cfxjse_formcalc_context.cpp | 473 IFX_Locale* LocaleFromString(CXFA_Document* pDoc, 479 CXFA_Node* pThisNode = ToNode(pDoc->GetScriptContext()->GetThisObject()); [all...] |
/external/pdfium/core/fpdfdoc/ |
cpdf_interform.cpp | 1118 std::unique_ptr<CFDF_Document> pDoc = CFDF_Document::CreateNewDoc(); 1119 if (!pDoc) 1122 CPDF_Dictionary* pMainDict = pDoc->GetRoot()->GetDictFor("FDF"); 1132 pdfium::MakeUnique<CPDF_Dictionary>(pDoc->GetByteStringPool()); [all...] |
/external/pdfium/core/fpdfapi/render/ |
cpdf_renderstatus.cpp | 72 CPDF_Document* pDoc = pFont->GetDocument(); 73 if (!pDoc) 76 pDoc->GetRenderData()->MaybePurgeCachedType3(pFont); 77 pDoc->GetPageData()->ReleaseFont(pFont->GetFontDict()); 915 RetainPtr<CFX_DIBitmap> DrawPatternBitmap(CPDF_Document* pDoc, 946 CPDF_RenderContext context(pDoc, pCache); [all...] |