Home
last modified time | relevance | path

Searched refs:pDict (Results 1 – 25 of 92) sorted by relevance

1234

/external/pdfium/core/fpdfdoc/
Dcpdf_viewerpreferences.cpp18 CPDF_Dictionary* pDict = GetViewerPreferences(); in IsDirectionR2L() local
19 return pDict ? pDict->GetStringFor("Direction") == "R2L" : false; in IsDirectionR2L()
23 CPDF_Dictionary* pDict = GetViewerPreferences(); in PrintScaling() local
24 return pDict ? pDict->GetStringFor("PrintScaling") != "None" : true; in PrintScaling()
28 CPDF_Dictionary* pDict = GetViewerPreferences(); in NumCopies() local
29 return pDict ? pDict->GetIntegerFor("NumCopies") : 1; in NumCopies()
33 CPDF_Dictionary* pDict = GetViewerPreferences(); in PrintPageRange() local
34 return pDict ? pDict->GetArrayFor("PrintPageRange") : nullptr; in PrintPageRange()
38 CPDF_Dictionary* pDict = GetViewerPreferences(); in Duplex() local
39 return pDict ? pDict->GetStringFor("Duplex") : ByteString("None"); in Duplex()
[all …]
Dcpdf_actionfields.cpp22 CPDF_Dictionary* pDict = m_pAction->GetDict(); in GetFieldsCount() local
23 if (!pDict) in GetFieldsCount()
26 ByteString csType = pDict->GetStringFor("S"); in GetFieldsCount()
29 pFields = pDict->GetDirectObjectFor("T"); in GetFieldsCount()
31 pFields = pDict->GetArrayFor("Fields"); in GetFieldsCount()
49 CPDF_Dictionary* pDict = m_pAction->GetDict(); in GetAllFields() local
50 if (!pDict) in GetAllFields()
53 ByteString csType = pDict->GetStringFor("S"); in GetAllFields()
56 pFields = pDict->GetDirectObjectFor("T"); in GetAllFields()
58 pFields = pDict->GetArrayFor("Fields"); in GetAllFields()
[all …]
Dcpdf_filespec.cpp94 if (CPDF_Dictionary* pDict = m_pObj->AsDictionary()) { in GetFileName() local
95 csFileName = pDict->GetUnicodeTextFor("UF"); in GetFileName()
98 WideString::FromLocal(pDict->GetStringFor("F").AsStringView()); in GetFileName()
100 if (pDict->GetStringFor("FS") == "URL") in GetFileName()
106 if (pDict->KeyExist(key)) { in GetFileName()
108 WideString::FromLocal(pDict->GetStringFor(key).AsStringView()); in GetFileName()
120 CPDF_Dictionary* pDict = m_pObj->AsDictionary(); in GetFileStream() local
121 if (!pDict) in GetFileStream()
125 CPDF_Dictionary* pFiles = pDict->GetDictFor("EF"); in GetFileStream()
132 size_t end = pDict->GetStringFor("FS") == "URL" ? 2 : FX_ArraySize(keys); in GetFileStream()
[all …]
Dcpdf_structtree.cpp85 CPDF_Dictionary* pDict, in AddPageNode() argument
92 auto it = map->find(pDict); in AddPageNode()
96 auto pElement = pdfium::MakeRetain<CPDF_StructElement>(this, nullptr, pDict); in AddPageNode()
97 (*map)[pDict] = pElement; in AddPageNode()
98 CPDF_Dictionary* pParent = pDict->GetDictFor("P"); in AddPageNode()
100 if (!AddTopLevelNode(pDict, pElement)) in AddPageNode()
101 map->erase(pDict); in AddPageNode()
109 if (kid.m_Type == CPDF_StructKid::Element && kid.m_pDict == pDict) { in AddPageNode()
115 map->erase(pDict); in AddPageNode()
120 CPDF_Dictionary* pDict, in AddTopLevelNode() argument
[all …]
Dcpdf_structelement.cpp31 CPDF_Dictionary* pDict) in CPDF_StructElement() argument
34 m_pDict(pDict), in CPDF_StructElement()
35 m_Type(pDict->GetStringFor("S")), in CPDF_StructElement()
36 m_Title(pDict->GetStringFor("T")) { in CPDF_StructElement()
42 LoadKids(pDict); in CPDF_StructElement()
57 void CPDF_StructElement::LoadKids(CPDF_Dictionary* pDict) { in LoadKids() argument
58 CPDF_Object* pObj = pDict->GetObjectFor("Pg"); in LoadKids()
63 CPDF_Object* pKids = pDict->GetDirectObjectFor("K"); in LoadKids()
Dcpdf_bookmarktree.cpp32 CPDF_Dictionary* pDict = bookmark.GetDict(); in GetNextSibling() local
33 if (!pDict) in GetNextSibling()
36 CPDF_Dictionary* pNext = pDict->GetDictFor("Next"); in GetNextSibling()
37 return pNext == pDict ? CPDF_Bookmark() : CPDF_Bookmark(pNext); in GetNextSibling()
Dcpdf_occontext.cpp26 bool HasIntent(const CPDF_Dictionary* pDict, in HasIntent() argument
29 CPDF_Object* pIntent = pDict->GetDirectObjectFor("Intent"); in HasIntent()
204 if (CPDF_Dictionary* pDict = pOCGObj->AsDictionary()) in GetOCGVE() local
205 return !GetOCGVisible(pDict); in GetOCGVE()
221 if (CPDF_Dictionary* pDict = pOCGObj->AsDictionary()) in GetOCGVE() local
222 bItem = GetOCGVisible(pDict); in GetOCGVE()
249 if (const CPDF_Dictionary* pDict = pOCGObj->AsDictionary()) in LoadOCMDState() local
250 return GetOCGVisible(pDict); in LoadOCMDState()
/external/pdfium/core/fpdfapi/parser/
Dcpdf_linearized_header.cpp25 bool IsValidNumericDictionaryValue(const CPDF_Dictionary* pDict, in IsValidNumericDictionaryValue() argument
29 if (!pDict->KeyExist(key)) in IsValidNumericDictionaryValue()
31 const CPDF_Number* pNum = ToNumber(pDict->GetObjectFor(key)); in IsValidNumericDictionaryValue()
60 const auto pDict = ToDictionary( in Parse() local
63 if (!pDict || !pDict->KeyExist("Linearized") || in Parse()
64 !IsValidNumericDictionaryValue<FX_FILESIZE>(pDict.get(), "L", 1) || in Parse()
65 !IsValidNumericDictionaryValue<uint32_t>(pDict.get(), "P", 0, false) || in Parse()
66 !IsValidNumericDictionaryValue<FX_FILESIZE>(pDict.get(), "T", 1) || in Parse()
67 !IsValidNumericDictionaryValue<uint32_t>(pDict.get(), "N", 0) || in Parse()
68 !IsValidNumericDictionaryValue<FX_FILESIZE>(pDict.get(), "E", 1) || in Parse()
[all …]
Dcpdf_stream.cpp24 std::unique_ptr<CPDF_Dictionary> pDict) in CPDF_Stream() argument
25 : m_pDict(std::move(pDict)) { in CPDF_Stream()
57 std::unique_ptr<CPDF_Dictionary> pDict) { in InitStream() argument
58 m_pDict = std::move(pDict); in InitStream()
64 std::unique_ptr<CPDF_Dictionary> pDict) { in InitStreamFromFile() argument
65 m_pDict = std::move(pDict); in InitStreamFromFile()
86 CPDF_Dictionary* pDict = GetDict(); in CloneNonCyclic() local
88 if (pDict && !pdfium::ContainsKey(*pVisited, pDict)) { in CloneNonCyclic()
90 static_cast<CPDF_Object*>(pDict)->CloneNonCyclic(bDirect, pVisited)); in CloneNonCyclic()
/external/pdfium/fpdfsdk/
Dfpdfdoc.cpp66 FPDFBookmark_GetFirstChild(FPDF_DOCUMENT document, FPDF_BOOKMARK pDict) { in FPDFBookmark_GetFirstChild() argument
72 CPDF_Bookmark(ToDictionary(static_cast<CPDF_Object*>(pDict))); in FPDFBookmark_GetFirstChild()
77 FPDFBookmark_GetNextSibling(FPDF_DOCUMENT document, FPDF_BOOKMARK pDict) { in FPDFBookmark_GetNextSibling() argument
78 if (!pDict) in FPDFBookmark_GetNextSibling()
85 CPDF_Bookmark(ToDictionary(static_cast<CPDF_Object*>(pDict))); in FPDFBookmark_GetNextSibling()
90 FPDFBookmark_GetTitle(FPDF_BOOKMARK pDict, void* buffer, unsigned long buflen) { in FPDFBookmark_GetTitle() argument
91 if (!pDict) in FPDFBookmark_GetTitle()
93 CPDF_Bookmark bookmark(ToDictionary(static_cast<CPDF_Object*>(pDict))); in FPDFBookmark_GetTitle()
113 FPDF_BOOKMARK pDict) { in FPDFBookmark_GetDest() argument
114 if (!pDict) in FPDFBookmark_GetDest()
[all …]
Dfpdfppo.cpp27 CPDF_Object* PageDictGetInheritableTag(CPDF_Dictionary* pDict, in PageDictGetInheritableTag() argument
29 if (!pDict || bsSrcTag.IsEmpty()) in PageDictGetInheritableTag()
31 if (!pDict->KeyExist("Parent") || !pDict->KeyExist("Type")) in PageDictGetInheritableTag()
34 CPDF_Object* pType = pDict->GetObjectFor("Type")->GetDirect(); in PageDictGetInheritableTag()
41 ToDictionary(pDict->GetObjectFor("Parent")->GetDirect()); in PageDictGetInheritableTag()
45 if (pDict->KeyExist(bsSrcTag)) in PageDictGetInheritableTag()
46 return pDict->GetObjectFor(bsSrcTag); in PageDictGetInheritableTag()
269 CPDF_Dictionary* pDict = pObj->AsDictionary(); in UpdateReference() local
270 auto it = pDict->begin(); in UpdateReference()
271 while (it != pDict->end()) { in UpdateReference()
[all …]
Dfsdk_actionhandler.cpp119 CPDF_Dictionary* pDict = action.GetDict(); in ExecuteDocumentOpenAction() local
120 if (pdfium::ContainsKey(*visited, pDict)) in ExecuteDocumentOpenAction()
123 visited->insert(pDict); in ExecuteDocumentOpenAction()
150 CPDF_Dictionary* pDict = action.GetDict(); in ExecuteLinkAction() local
151 if (pdfium::ContainsKey(*visited, pDict)) in ExecuteLinkAction()
154 visited->insert(pDict); in ExecuteLinkAction()
191 CPDF_Dictionary* pDict = action.GetDict(); in ExecuteDocumentPageAction() local
192 if (pdfium::ContainsKey(*visited, pDict)) in ExecuteDocumentPageAction()
195 visited->insert(pDict); in ExecuteDocumentPageAction()
238 CPDF_Dictionary* pDict = action.GetDict(); in ExecuteFieldAction() local
[all …]
/external/pdfium/core/fpdfapi/page/
Dcpdf_image.cpp91 auto pDict = in InitJPEG() local
93 pDict->SetNewFor<CPDF_Name>("Type", "XObject"); in InitJPEG()
94 pDict->SetNewFor<CPDF_Name>("Subtype", "Image"); in InitJPEG()
95 pDict->SetNewFor<CPDF_Number>("Width", width); in InitJPEG()
96 pDict->SetNewFor<CPDF_Number>("Height", height); in InitJPEG()
104 CPDF_Array* pDecode = pDict->SetNewFor<CPDF_Array>("Decode"); in InitJPEG()
110 pDict->SetNewFor<CPDF_Name>("ColorSpace", csname); in InitJPEG()
111 pDict->SetNewFor<CPDF_Number>("BitsPerComponent", bits); in InitJPEG()
112 pDict->SetNewFor<CPDF_Name>("Filter", "DCTDecode"); in InitJPEG()
114 CPDF_Dictionary* pParms = pDict->SetNewFor<CPDF_Dictionary>("DecodeParms"); in InitJPEG()
[all …]
Dcpdf_contentmark.cpp34 CPDF_Dictionary* pDict, in AddMark() argument
36 m_Ref.GetPrivateCopy()->AddMark(name, pDict, bDirect); in AddMark()
63 const CPDF_Dictionary* pDict = mark.GetParam(); in GetMarkedContentID() local
64 if (pDict && pDict->KeyExist("MCID")) in GetMarkedContentID()
65 return pDict->GetIntegerFor("MCID"); in GetMarkedContentID()
71 CPDF_Dictionary* pDict, in AddMark() argument
75 if (pDict) { in AddMark()
77 item.SetDirectDict(ToDictionary(pDict->Clone())); in AddMark()
79 item.SetPropertiesDict(pDict); in AddMark()
Dcpdf_contentmarkitem.cpp39 CPDF_Dictionary* pDict = GetParam(); in HasMCID() local
40 return pDict && pDict->KeyExist("MCID"); in HasMCID()
44 std::unique_ptr<CPDF_Dictionary> pDict) { in SetDirectDict() argument
46 m_pDirectDict = std::move(pDict); in SetDirectDict()
49 void CPDF_ContentMarkItem::SetPropertiesDict(CPDF_Dictionary* pDict) { in SetPropertiesDict() argument
51 m_pPropertiesDict = pDict; in SetPropertiesDict()
Dcpdf_tilingpattern.cpp38 CPDF_Dictionary* pDict = pattern_obj()->GetDict(); in Load() local
39 if (!pDict) in Load()
42 m_bColored = pDict->GetIntegerFor("PaintType") == 1; in Load()
43 m_XStep = static_cast<float>(fabs(pDict->GetNumberFor("XStep"))); in Load()
44 m_YStep = static_cast<float>(fabs(pDict->GetNumberFor("YStep"))); in Load()
53 m_BBox = pDict->GetRectFor("BBox"); in Load()
Dcpdf_expintfunc.cpp24 CPDF_Dictionary* pDict = pObj->GetDict(); in v_Init() local
25 if (!pDict) in v_Init()
28 CPDF_Array* pArray0 = pDict->GetArrayFor("C0"); in v_Init()
35 CPDF_Array* pArray1 = pDict->GetArrayFor("C1"); in v_Init()
43 m_Exponent = pDict->GetFloatFor("N"); in v_Init()
Dcpdf_colorspace.cpp173 CPDF_Dictionary* pDict,
178 static std::vector<float> GetRanges(CPDF_Dictionary* pDict,
408 CPDF_Dictionary* pDict = pStream->GetDict(); in Load() local
409 if (!pDict) in Load()
412 for (const auto& it : *pDict) { in Load()
562 CPDF_Dictionary* pDict = pArray->GetDictAt(1); in v_Load() local
563 if (!pDict) in v_Load()
566 CPDF_Array* pParam = pDict->GetArrayFor("WhitePoint"); in v_Load()
570 pParam = pDict->GetArrayFor("BlackPoint"); in v_Load()
574 m_Gamma = pDict->GetNumberFor("Gamma"); in v_Load()
[all …]
Dcpdf_stitchfunc.cpp26 CPDF_Dictionary* pDict = pObj->GetDict(); in v_Init() local
27 if (!pDict) { in v_Init()
33 CPDF_Array* pArray = pDict->GetArrayFor("Functions"); in v_Init()
63 pArray = pDict->GetArrayFor("Bounds"); in v_Init()
70 pArray = pDict->GetArrayFor("Encode"); in v_Init()
Dcpdf_streamparser.cpp117 std::unique_ptr<CPDF_Dictionary> pDict, in ReadInlineStream() argument
127 CPDF_Object* pFilter = pDict->GetDirectObjectFor("Filter"); in ReadInlineStream()
131 CPDF_Array* pParams = pDict->GetArrayFor("DecodeParms"); in ReadInlineStream()
136 pParam = pDict->GetDictFor("DecodeParms"); in ReadInlineStream()
139 uint32_t width = pDict->GetIntegerFor("Width"); in ReadInlineStream()
140 uint32_t height = pDict->GetIntegerFor("Height"); in ReadInlineStream()
143 uint32_t bpc = pDict->GetIntegerFor("BitsPerComponent"); in ReadInlineStream()
219 pDict->SetNewFor<CPDF_Number>("Length", static_cast<int>(dwStreamSize)); in ReadInlineStream()
221 std::move(pDict)); in ReadInlineStream()
334 auto pDict = pdfium::MakeUnique<CPDF_Dictionary>(m_pPool); in ReadNextObject() local
[all …]
Dcpdf_sampledfunc.cpp44 CPDF_Dictionary* pDict = pStream->GetDict(); in v_Init() local
45 CPDF_Array* pSize = pDict->GetArrayFor("Size"); in v_Init()
46 CPDF_Array* pEncode = pDict->GetArrayFor("Encode"); in v_Init()
47 CPDF_Array* pDecode = pDict->GetArrayFor("Decode"); in v_Init()
48 m_nBitsPerSample = pDict->GetIntegerFor("BitsPerSample"); in v_Init()
60 m_EncodeInfo[i].sizes = pDict->GetIntegerFor("Size"); in v_Init()
Dcpdf_function.cpp27 else if (CPDF_Dictionary* pDict = pFuncObj->AsDictionary()) in Load() local
28 iType = pDict->GetIntegerFor("FunctionType"); in Load()
69 CPDF_Dictionary* pDict = pStream ? pStream->GetDict() : pObj->AsDictionary(); in Init() local
71 CPDF_Array* pDomains = pDict->GetArrayFor("Domain"); in Init()
83 CPDF_Array* pRanges = pDict->GetArrayFor("Range"); in Init()
Dcpdf_docpagedata.cpp173 CPDF_Dictionary* pDict = m_pPDFDoc->NewIndirect<CPDF_Dictionary>(); in GetStandardFont() local
174 pDict->SetNewFor<CPDF_Name>("Type", "Font"); in GetStandardFont()
175 pDict->SetNewFor<CPDF_Name>("Subtype", "Type1"); in GetStandardFont()
176 pDict->SetNewFor<CPDF_Name>("BaseFont", fontName); in GetStandardFont()
178 pDict->SetFor("Encoding", in GetStandardFont()
182 std::unique_ptr<CPDF_Font> pFont = CPDF_Font::Create(m_pPDFDoc.Get(), pDict); in GetStandardFont()
187 m_FontMap[pDict] = fontData; in GetStandardFont()
348 CPDF_Dictionary* pDict = pPatternObj->GetDict(); in GetPattern() local
349 if (!pDict) in GetPattern()
352 int type = pDict->GetIntegerFor("PatternType"); in GetPattern()
/external/pdfium/core/fxcodec/jbig2/
DJBig2_PddProc.cpp22 auto pDict = pdfium::MakeUnique<CJBig2_PatternDict>(GRAYMAX + 1); in decode_Arith() local
50 pDict->HDPATS[GRAY] = BHDC->subImage(HDPW * GRAY, 0, HDPW, HDPH); in decode_Arith()
53 return pDict; in decode_Arith()
60 auto pDict = pdfium::MakeUnique<CJBig2_PatternDict>(GRAYMAX + 1); in decode_MMR() local
72 pDict->HDPATS[GRAY] = BHDC->subImage(HDPW * GRAY, 0, HDPW, HDPH); in decode_MMR()
75 return pDict; in decode_MMR()
/external/pdfium/fpdfsdk/pwl/
Dcpwl_icon.cpp24 CPDF_Dictionary* pDict = m_pPDFStream->GetDict(); in GetImageSize() local
25 if (!pDict) in GetImageSize()
28 CFX_FloatRect rect = pDict->GetRectFor("BBox"); in GetImageSize()
35 if (CPDF_Dictionary* pDict = m_pPDFStream->GetDict()) in GetImageMatrix() local
36 return pDict->GetMatrixFor("Matrix"); in GetImageMatrix()
43 if (CPDF_Dictionary* pDict = m_pPDFStream->GetDict()) in GetImageAlias() local
44 return pDict->GetStringFor("Name"); in GetImageAlias()

1234