/external/pdfium/core/src/fpdfdoc/ |
doc_viewerPreferences.cpp | 16 CPDF_Dictionary *pDict = m_pDoc->GetRoot(); 17 pDict = pDict->GetDict(FX_BSTRC("ViewerPreferences")); 18 if (!pDict) { 21 return FX_BSTRC("R2L") == pDict->GetString(FX_BSTRC("Direction")); 25 CPDF_Dictionary *pDict = m_pDoc->GetRoot(); 26 pDict = pDict->GetDict(FX_BSTRC("ViewerPreferences")); 27 if (!pDict) { 30 return FX_BSTRC("None") != pDict->GetString(FX_BSTRC("PrintScaling")) [all...] |
doc_action.cpp | 98 CPDF_Dictionary* pDict = m_pAction->GetDict(); 99 if (pDict == NULL) { 102 CFX_ByteString csType = pDict->GetString("S"); 105 pFields = pDict->GetElementValue("T"); 107 pFields = pDict->GetArray("Fields"); 128 CPDF_Dictionary* pDict = m_pAction->GetDict(); 129 if (pDict == NULL) { 132 CFX_ByteString csType = pDict->GetString("S"); 135 pFields = pDict->GetElementValue("T"); 137 pFields = pDict->GetArray("Fields") [all...] |
doc_tagged.cpp | 122 CPDF_StructElementImpl* CPDF_StructTreeImpl::AddPageNode(CPDF_Dictionary* pDict, CFX_MapPtrToPtr& map, int nLevel) 128 if (map.Lookup(pDict, (FX_LPVOID&)pElement)) { 131 pElement = new CPDF_StructElementImpl(this, NULL, pDict); 132 map.SetAt(pDict, pElement); 133 CPDF_Dictionary* pParent = pDict->GetDict(FX_BSTRC("P")); 135 if (!AddTopLevelNode(pDict, pElement)) { 137 map.RemoveKey(pDict); 146 if (pParentElement->m_Kids[i].m_Element.m_pDict != pDict) { 154 map.RemoveKey(pDict); 159 FX_BOOL CPDF_StructTreeImpl::AddTopLevelNode(CPDF_Dictionary* pDict, CPDF_StructElementImpl* pElement [all...] |
doc_annot.cpp | 27 CPDF_Dictionary* pDict = (CPDF_Dictionary*)pAnnots->GetElementValue(i); 28 if (pDict == NULL || pDict->GetType() != PDFOBJ_DICTIONARY) { 31 FX_DWORD dwObjNum = pDict->GetObjNum(); 33 dwObjNum = m_pDocument->AddIndirectObject(pDict); 40 pDict = pAnnots->GetDict(i); 42 CPDF_Annot* pAnnot = new CPDF_Annot(pDict); 45 if (bRegenerateAP && pDict->GetConstString(FX_BSTRC("Subtype")) == FX_BSTRC("Widget")) 47 FPDF_GenerateAP(m_pDocument, pDict); 138 CPDF_Annot::CPDF_Annot(CPDF_Dictionary* pDict) [all...] |
doc_basic.cpp | 323 CPDF_Dictionary* pDict = (CPDF_Dictionary*)m_pObj; 324 csFileName = pDict->GetUnicodeText(FX_BSTRC("UF")); 326 csFileName = CFX_WideString::FromLocal(pDict->GetString(FX_BSTRC("F"))); 328 if (pDict->GetString(FX_BSTRC("FS")) == FX_BSTRC("URL")) { 332 if (pDict->KeyExist(FX_BSTRC("DOS"))) { 333 csFileName = CFX_WideString::FromLocal(pDict->GetString(FX_BSTRC("DOS"))); 334 } else if (pDict->KeyExist(FX_BSTRC("Mac"))) { 335 csFileName = CFX_WideString::FromLocal(pDict->GetString(FX_BSTRC("Mac"))); 336 } else if (pDict->KeyExist(FX_BSTRC("Unix"))) { 337 csFileName = CFX_WideString::FromLocal(pDict->GetString(FX_BSTRC("Unix"))) [all...] |
/external/pdfium/core/src/fpdfapi/fpdf_page/ |
fpdf_page_image.cpp | 95 CPDF_Dictionary* pDict = pStream->GetDict(); 97 m_pInlineDict = (CPDF_Dictionary*)pDict->Clone(); 99 m_pOC = pDict->GetDict(FX_BSTRC("OC")); 100 m_bIsMask = !pDict->KeyExist(FX_BSTRC("ColorSpace")) || pDict->GetInteger(FX_BSTRC("ImageMask")); 101 m_bInterpolate = pDict->GetInteger(FX_BSTRC("Interpolate")); 102 m_Height = pDict->GetInteger(FX_BSTRC("Height")); 103 m_Width = pDict->GetInteger(FX_BSTRC("Width"));
|
fpdf_page_colors.cpp | 283 CPDF_Dictionary* pDict = pArray->GetDict(1); 284 CPDF_Array* pParam = pDict->GetArray(FX_BSTRC("WhitePoint")); 289 pParam = pDict->GetArray(FX_BSTRC("BlackPoint")); 293 m_Gamma = pDict->GetNumber(FX_BSTRC("Gamma")); 342 CPDF_Dictionary* pDict = pArray->GetDict(1); 343 CPDF_Array* pParam = pDict->GetArray(FX_BSTRC("WhitePoint")); 348 pParam = pDict->GetArray(FX_BSTRC("BlackPoint")); 352 pParam = pDict->GetArray(FX_BSTRC("Gamma")); 361 pParam = pDict->GetArray(FX_BSTRC("Matrix")); 440 CPDF_Dictionary* pDict = pArray->GetDict(1) [all...] |
fpdf_page_pattern.cpp | 26 CPDF_Dictionary* pDict = m_pPatternObj->GetDict(); 27 ASSERT(pDict != NULL); 28 m_Pattern2Form = pDict->GetMatrix(FX_BSTRC("Matrix")); 29 m_bColored = pDict->GetInteger(FX_BSTRC("PaintType")) == 1; 47 CPDF_Dictionary* pDict = m_pPatternObj->GetDict(); 48 if (pDict == NULL) { 51 m_bColored = pDict->GetInteger(FX_BSTRC("PaintType")) == 1; 52 m_XStep = (FX_FLOAT)FXSYS_fabs(pDict->GetNumber(FX_BSTRC("XStep"))); 53 m_YStep = (FX_FLOAT)FXSYS_fabs(pDict->GetNumber(FX_BSTRC("YStep"))); 60 m_BBox = pDict->GetRect(FX_BSTRC("BBox")) [all...] |
fpdf_page_doc.cpp | 346 CPDF_Dictionary* pDict = new CPDF_Dictionary; 347 pDict->SetAtName(FX_BSTRC("Type"), FX_BSTRC("Font")); 348 pDict->SetAtName(FX_BSTRC("Subtype"), FX_BSTRC("Type1")); 349 pDict->SetAtName(FX_BSTRC("BaseFont"), fontName); 351 pDict->SetAt(FX_BSTRC("Encoding"), pEncoding->Realize()); 353 m_pPDFDoc->AddIndirectObject(pDict); 355 CPDF_Font* pFont = CPDF_Font::CreateFontF(m_pPDFDoc, pDict); 362 m_FontMap.SetAt(pDict, fontData); 502 CPDF_Dictionary* pDict = pPatternObj ? pPatternObj->GetDict() : NULL; 503 if (pDict) { [all...] |
fpdf_page_graph_state.cpp | 654 CPDF_Dictionary *pDict = (CPDF_Dictionary *)m_Marks[i].GetParam(); 655 if (pDict->KeyExist(FX_BSTRC("MCID"))) { 656 return pDict->GetInteger(FX_BSTRC("MCID")); 662 void CPDF_ContentMarkData::AddMark(const CFX_ByteString& name, CPDF_Dictionary* pDict, FX_BOOL bDirect) 666 if (pDict == NULL) { 670 bDirect ? pDict->Clone() : pDict); 693 FX_BOOL CPDF_ContentMark::LookupMark(FX_BSTR mark, CPDF_Dictionary*& pDict) const 701 pDict = NULL; 704 pDict = (CPDF_Dictionary*)item.GetParam() [all...] |
fpdf_page_parser_old.cpp | 86 CPDF_Dictionary* pDict = CPDF_Dictionary::Create(); 93 pDict->Release(); 103 pDict->SetAt(key, pObj, m_pDocument); 108 _PDF_ReplaceAbbr(pDict); 110 if (pDict->KeyExist(FX_BSTRC("ColorSpace"))) { 111 pCSObj = pDict->GetElementValue(FX_BSTRC("ColorSpace")); 118 pDict->SetAt(FX_BSTRC("ColorSpace"), pCSObj, m_pDocument); 123 CPDF_Stream* pStream = m_pSyntax->ReadInlineStream(m_pDocument, pDict, pCSObj, m_Options.m_bDecodeInlineImage); 141 pDict->Release(); 145 pDict->SetAtName(FX_BSTRC("Subtype"), FX_BSTRC("Image")) [all...] |
fpdf_page_func.cpp | 479 CPDF_Dictionary* pDict = pStream->GetDict(); 480 CPDF_Array* pSize = pDict->GetArray(FX_BSTRC("Size")); 481 CPDF_Array* pEncode = pDict->GetArray(FX_BSTRC("Encode")); 482 CPDF_Array* pDecode = pDict->GetArray(FX_BSTRC("Decode")); 483 m_nBitsPerSample = pDict->GetInteger(FX_BSTRC("BitsPerSample")); 493 m_pEncodeInfo[i].sizes = pDict->GetInteger(FX_BSTRC("Size")); 659 CPDF_Dictionary* pDict = pObj->GetDict(); 660 if (pDict == NULL) { 663 CPDF_Array* pArray0 = pDict->GetArray(FX_BSTRC("C0")); 670 CPDF_Array* pArray1 = pDict->GetArray(FX_BSTRC("C1")) [all...] |
/external/pdfium/fpdfsdk/src/formfiller/ |
FFL_Utils.cpp | 64 CPDF_Dictionary* pDict = (CPDF_Dictionary*)pObj; 66 FX_POSITION fPos = pDict->GetStartPos(); 70 CPDF_Object* pElement = pDict->GetNextElement(fPos, csKey); 81 CPDF_Dictionary* pDict = pStream->GetDict(); 82 TraceObject(pDict);
|
/external/pdfium/core/src/fpdfapi/fpdf_parser/ |
fpdf_parser_fdf.cpp | 106 CPDF_Dictionary* pDict = m_pRootDict ? m_pRootDict->GetDict(FX_BSTRC("FDF")) : NULL; 107 CPDF_Object* pFileSpec = pDict ? pDict->GetElementValue(FX_BSTRC("F")) : NULL; 158 CPDF_Dictionary* pDict = (CPDF_Dictionary*)pFileSpec; 159 wsFileName = pDict->GetUnicodeText(FX_BSTRC("UF")); 161 wsFileName = CFX_WideString::FromLocal(pDict->GetString(FX_BSTRC("F"))); 163 if (pDict->GetString(FX_BSTRC("FS")) == FX_BSTRC("URL")) { 166 if (wsFileName.IsEmpty() && pDict->KeyExist(FX_BSTRC("DOS"))) { 167 wsFileName = CFX_WideString::FromLocal(pDict->GetString(FX_BSTRC("DOS")));
|
/external/pdfium/core/src/fpdfapi/fpdf_edit/ |
fpdf_edit_content.cpp | 121 CPDF_Dictionary* pDict = m_pPage->m_pFormDict; 122 CPDF_Object* pContent = pDict ? pDict->GetElementValue("Contents") : NULL;
|
fpdf_edit_image.cpp | 20 CPDF_Dictionary* pDict = new CPDF_Dictionary; 21 pDict->SetAtName("Type", "XObject"); 22 pDict->SetAtName("Subtype", "Image"); 23 pDict->SetAtInteger("Width", width); 24 pDict->SetAtInteger("Height", height); 37 pDict->SetAt(FX_BSTRC("Decode"), pDecode); 39 pDict->SetAtName("ColorSpace", csname); 40 pDict->SetAtInteger("BitsPerComponent", bits); 41 pDict->SetAtName("Filter", "DCTDecode"); 44 pDict->SetAt("DecodeParms", pParms) [all...] |
fpdf_edit_create.cpp | 14 extern FX_BOOL IsSignatureDict(const CPDF_Dictionary* pDict); 928 CPDF_Dictionary *pDict = pObj->GetDict(); 930 if (pDict && pDict->GetString(FX_BSTRC("Type")) == FX_BSTRC("XRef")) { 935 if (pDict) { 936 if (pDict == m_pDocument->m_pRootDict || pDict == m_pEncryptDict) { 939 if (IsSignatureDict(pDict)) { 942 if (pDict->GetString(FX_BSTRC("Type")) == FX_BSTRC("Page")) { [all...] |
fpdf_edit_doc.cpp | [all...] |
/external/pdfium/fpdfsdk/src/ |
fpdfdoc.cpp | 30 DLLEXPORT FPDF_BOOKMARK STDCALL FPDFBookmark_GetFirstChild(FPDF_DOCUMENT document, FPDF_BOOKMARK pDict) 36 CPDF_Bookmark bookmark = CPDF_Bookmark((CPDF_Dictionary*)pDict); 40 DLLEXPORT FPDF_BOOKMARK STDCALL FPDFBookmark_GetNextSibling(FPDF_DOCUMENT document, FPDF_BOOKMARK pDict) 42 if (!document || !pDict) 46 CPDF_Bookmark bookmark = CPDF_Bookmark((CPDF_Dictionary*)pDict); 50 DLLEXPORT unsigned long STDCALL FPDFBookmark_GetTitle(FPDF_BOOKMARK pDict, void* buffer, unsigned long buflen) 52 if (!pDict) 54 CPDF_Bookmark bookmark((CPDF_Dictionary*)pDict); 77 DLLEXPORT FPDF_DEST STDCALL FPDFBookmark_GetDest(FPDF_DOCUMENT document, FPDF_BOOKMARK pDict) 81 if (!pDict) [all...] |
fpdfeditpage.cpp | 103 CPDF_Dictionary* pDict = pPage->m_pFormDict; 106 if(pDict != NULL) 108 if (pDict->KeyExist("Rotate")) 109 rotate = pDict->GetElement("Rotate")->GetDirect()? pDict->GetElement("Rotate")->GetDirect()->GetInteger() / 90 : 0; 112 if(pDict->KeyExist("Parent")) 114 CPDF_Dictionary* pPages = (CPDF_Dictionary*)pDict->GetElement("Parent")->GetDirect(); 317 CPDF_Dictionary* pDict = pPage->m_pFormDict; 320 pDict->SetAt("Rotate", new CPDF_Number(rotate * 90));
|
fpdf_transformpage.cpp | 160 CPDF_Dictionary* pDict = NULL; 167 pDict = (CPDF_Dictionary*)pObj; 171 pDict = ((CPDF_Stream*)pObj)->GetDict(); 176 CFX_AffineMatrix m = pDict->GetMatrix(FX_BSTRC("Matrix")); 179 pDict->SetAtMatrix(FX_BSTRC("Matrix"), m);
|
fpdfppo.cpp | 19 CPDF_Object* PageDictGetInheritableTag(CPDF_Dictionary *pDict, CFX_ByteString nSrctag); 191 CPDF_Object* CPDF_PageOrganizer::PageDictGetInheritableTag(CPDF_Dictionary *pDict, CFX_ByteString nSrctag) 193 if(!pDict || !pDict->KeyExist("Type") || nSrctag.IsEmpty()) 196 CPDF_Object* pType = pDict->GetElement("Type")->GetDirect(); 201 if(!pDict->KeyExist("Parent")) return NULL; 202 CPDF_Object* pParent = pDict->GetElement("Parent")->GetDirect(); 207 if(pDict->KeyExist((const char*)nSrctag)) 208 return pDict->GetElement((const char*)nSrctag); 239 CPDF_Dictionary* pDict = (CPDF_Dictionary*)pObj [all...] |
fsdk_actionhandler.cpp | 137 CPDF_Dictionary* pDict = action.GetDict(); 138 if (list.Find(pDict)) 141 list.AddTail(pDict); 175 CPDF_Dictionary* pDict = action.GetDict(); 176 if (list.Find(pDict)) 179 list.AddTail(pDict); 230 CPDF_Dictionary* pDict = action.GetDict(); 231 if (list.Find(pDict)) 234 list.AddTail(pDict); 286 CPDF_Dictionary* pDict = action.GetDict() [all...] |
fpdfview.cpp | 278 CPDF_Dictionary* pDict = pParser->GetEncryptDict(); 279 if (pDict == NULL) return (FX_DWORD)-1; 281 return pDict->GetInteger("P"); 289 CPDF_Dictionary* pDict = pParser->GetEncryptDict(); 290 if (pDict == NULL) return -1; 292 return pDict->GetInteger("R"); 308 CPDF_Dictionary* pDict = pDoc->GetPage(page_index); 309 if (pDict == NULL) return NULL; 311 pPage->Load(pDoc, pDict); 750 CPDF_Dictionary* pDict = pDoc->GetPage(page_index) [all...] |
/external/pdfium/core/src/fpdfapi/fpdf_render/ |
fpdf_render_image.cpp | [all...] |