Home
last modified time | relevance | path

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

123

/external/pdfium/core/src/fpdfdoc/
Ddoc_viewerPreferences.cpp13 CPDF_Dictionary* pDict = m_pDoc->GetRoot(); in IsDirectionR2L() local
14 pDict = pDict->GetDict("ViewerPreferences"); in IsDirectionR2L()
15 if (!pDict) { in IsDirectionR2L()
18 return "R2L" == pDict->GetString("Direction"); in IsDirectionR2L()
21 CPDF_Dictionary* pDict = m_pDoc->GetRoot(); in PrintScaling() local
22 pDict = pDict->GetDict("ViewerPreferences"); in PrintScaling()
23 if (!pDict) { in PrintScaling()
26 return "None" != pDict->GetString("PrintScaling"); in PrintScaling()
29 CPDF_Dictionary* pDict = m_pDoc->GetRoot(); in NumCopies() local
30 pDict = pDict->GetDict("ViewerPreferences"); in NumCopies()
[all …]
Ddoc_tagged.cpp57 if (CPDF_Dictionary* pDict = pKids->AsDictionary()) { in LoadDocTree() local
59 new CPDF_StructElementImpl(this, nullptr, pDict); in LoadDocTree()
117 CPDF_StructElementImpl* CPDF_StructTreeImpl::AddPageNode(CPDF_Dictionary* pDict, in AddPageNode() argument
124 if (map.Lookup(pDict, (void*&)pElement)) { in AddPageNode()
127 pElement = new CPDF_StructElementImpl(this, NULL, pDict); in AddPageNode()
128 map.SetAt(pDict, pElement); in AddPageNode()
129 CPDF_Dictionary* pParent = pDict->GetDict("P"); in AddPageNode()
131 if (!AddTopLevelNode(pDict, pElement)) { in AddPageNode()
133 map.RemoveKey(pDict); in AddPageNode()
143 if (pParentElement->m_Kids[i].m_Element.m_pDict != pDict) { in AddPageNode()
[all …]
Ddoc_action.cpp94 CPDF_Dictionary* pDict = m_pAction->GetDict(); in GetFieldsCount() local
95 if (!pDict) { in GetFieldsCount()
98 CFX_ByteString csType = pDict->GetString("S"); in GetFieldsCount()
101 pFields = pDict->GetElementValue("T"); in GetFieldsCount()
103 pFields = pDict->GetArray("Fields"); in GetFieldsCount()
121 CPDF_Dictionary* pDict = m_pAction->GetDict(); in GetAllFields() local
122 if (!pDict) in GetAllFields()
125 CFX_ByteString csType = pDict->GetString("S"); in GetAllFields()
128 pFields = pDict->GetElementValue("T"); in GetAllFields()
130 pFields = pDict->GetArray("Fields"); in GetAllFields()
[all …]
Ddoc_basic.cpp236 if (CPDF_Dictionary* pDict = pValue->AsDictionary()) in LookupNamedDest() local
237 return pDict->GetArray("D"); in LookupNamedDest()
306 if (CPDF_Dictionary* pDict = m_pObj->AsDictionary()) { in GetFileName() local
307 csFileName = pDict->GetUnicodeText("UF"); in GetFileName()
309 csFileName = CFX_WideString::FromLocal(pDict->GetString("F")); in GetFileName()
311 if (pDict->GetString("FS") == "URL") { in GetFileName()
315 if (pDict->KeyExist("DOS")) { in GetFileName()
316 csFileName = CFX_WideString::FromLocal(pDict->GetString("DOS")); in GetFileName()
317 } else if (pDict->KeyExist("Mac")) { in GetFileName()
318 csFileName = CFX_WideString::FromLocal(pDict->GetString("Mac")); in GetFileName()
[all …]
Ddoc_annot.cpp23 CPDF_Dictionary* pDict = ToDictionary(pAnnots->GetElementValue(i)); in CPDF_AnnotList() local
24 if (!pDict) in CPDF_AnnotList()
27 FX_DWORD dwObjNum = pDict->GetObjNum(); in CPDF_AnnotList()
29 dwObjNum = m_pDocument->AddIndirectObject(pDict); in CPDF_AnnotList()
33 pDict = pAnnots->GetDict(i); in CPDF_AnnotList()
35 m_AnnotList.push_back(new CPDF_Annot(pDict, this)); in CPDF_AnnotList()
36 if (bRegenerateAP && pDict->GetConstString("Subtype") == "Widget" && in CPDF_AnnotList()
38 FPDF_GenerateAP(m_pDocument, pDict); in CPDF_AnnotList()
117 CPDF_Annot::CPDF_Annot(CPDF_Dictionary* pDict, CPDF_AnnotList* pList) in CPDF_Annot() argument
118 : m_pAnnotDict(pDict), in CPDF_Annot()
[all …]
Ddoc_ocg.cpp24 static FX_BOOL FPDFDOC_OCG_HasIntent(const CPDF_Dictionary* pDict, in FPDFDOC_OCG_HasIntent() argument
27 CPDF_Object* pIntent = pDict->GetElementValue("Intent"); in FPDFDOC_OCG_HasIntent()
202 if (CPDF_Dictionary* pDict = pOCGObj->AsDictionary()) in GetOCGVE() local
203 return !(bFromConfig ? LoadOCGState(pDict) : GetOCGVisible(pDict)); in GetOCGVE()
216 if (CPDF_Dictionary* pDict = pOCGObj->AsDictionary()) in GetOCGVE() local
217 bItem = bFromConfig ? LoadOCGState(pDict) : GetOCGVisible(pDict); in GetOCGVE()
245 if (const CPDF_Dictionary* pDict = pOCGObj->AsDictionary()) in LoadOCMDState() local
246 return bFromConfig ? LoadOCGState(pDict) : GetOCGVisible(pDict); in LoadOCMDState()
Dtagged_int.h30 FX_BOOL AddTopLevelNode(CPDF_Dictionary* pDict,
45 CPDF_Dictionary* pDict);
81 void LoadKids(CPDF_Dictionary* pDict);
/external/pdfium/fpdfsdk/src/
Dfpdfdoc.cpp55 FPDFBookmark_GetFirstChild(FPDF_DOCUMENT document, FPDF_BOOKMARK pDict) { in FPDFBookmark_GetFirstChild() argument
61 CPDF_Bookmark(ToDictionary(static_cast<CPDF_Object*>(pDict))); in FPDFBookmark_GetFirstChild()
66 FPDFBookmark_GetNextSibling(FPDF_DOCUMENT document, FPDF_BOOKMARK pDict) { in FPDFBookmark_GetNextSibling() argument
67 if (!pDict) in FPDFBookmark_GetNextSibling()
74 CPDF_Bookmark(ToDictionary(static_cast<CPDF_Object*>(pDict))); in FPDFBookmark_GetNextSibling()
78 DLLEXPORT unsigned long STDCALL FPDFBookmark_GetTitle(FPDF_BOOKMARK pDict, in FPDFBookmark_GetTitle() argument
81 if (!pDict) in FPDFBookmark_GetTitle()
83 CPDF_Bookmark bookmark(ToDictionary(static_cast<CPDF_Object*>(pDict))); in FPDFBookmark_GetTitle()
107 FPDF_BOOKMARK pDict) { in FPDFBookmark_GetDest() argument
108 if (!pDict) in FPDFBookmark_GetDest()
[all …]
Dfpdfppo.cpp24 CPDF_Object* PageDictGetInheritableTag(CPDF_Dictionary* pDict,
172 CPDF_Dictionary* pDict, in PageDictGetInheritableTag() argument
174 if (!pDict || nSrctag.IsEmpty()) in PageDictGetInheritableTag()
176 if (!pDict->KeyExist("Parent") || !pDict->KeyExist("Type")) in PageDictGetInheritableTag()
179 CPDF_Object* pType = pDict->GetElement("Type")->GetDirect(); in PageDictGetInheritableTag()
185 CPDF_Dictionary* pp = ToDictionary(pDict->GetElement("Parent")->GetDirect()); in PageDictGetInheritableTag()
189 if (pDict->KeyExist((const char*)nSrctag)) in PageDictGetInheritableTag()
190 return pDict->GetElement((const char*)nSrctag); in PageDictGetInheritableTag()
215 CPDF_Dictionary* pDict = pObj->AsDictionary(); in UpdateReference() local
216 auto it = pDict->begin(); in UpdateReference()
[all …]
Dfpdfeditpage.cpp108 CPDF_Dictionary* pDict = pPage->m_pFormDict; in FPDFPage_GetRotation() local
109 if (!pDict) in FPDFPage_GetRotation()
112 while (pDict) { in FPDFPage_GetRotation()
113 if (pDict->KeyExist("Rotate")) { in FPDFPage_GetRotation()
114 CPDF_Object* pRotateObj = pDict->GetElement("Rotate")->GetDirect(); in FPDFPage_GetRotation()
117 if (!pDict->KeyExist("Parent")) in FPDFPage_GetRotation()
120 pDict = ToDictionary(pDict->GetElement("Parent")->GetDirect()); in FPDFPage_GetRotation()
308 CPDF_Dictionary* pDict = pPage->m_pFormDict; in FPDFPage_SetRotation() local
311 pDict->SetAt("Rotate", new CPDF_Number(rotate * 90)); in FPDFPage_SetRotation()
Dfsdk_actionhandler.cpp106 CPDF_Dictionary* pDict = action.GetDict(); in ExecuteDocumentOpenAction() local
107 if (list.Find(pDict)) in ExecuteDocumentOpenAction()
110 list.AddTail(pDict); in ExecuteDocumentOpenAction()
137 CPDF_Dictionary* pDict = action.GetDict(); in ExecuteLinkAction() local
138 if (list.Find(pDict)) in ExecuteLinkAction()
141 list.AddTail(pDict); in ExecuteLinkAction()
182 CPDF_Dictionary* pDict = action.GetDict(); in ExecuteDocumentPageAction() local
183 if (list.Find(pDict)) in ExecuteDocumentPageAction()
186 list.AddTail(pDict); in ExecuteDocumentPageAction()
229 CPDF_Dictionary* pDict = action.GetDict(); in ExecuteFieldAction() local
[all …]
/external/pdfium/core/src/fpdfapi/fpdf_edit/
Dfpdf_edit_image.cpp24 CPDF_Dictionary* pDict = new CPDF_Dictionary; in InitJPEG() local
25 pDict->SetAtName("Type", "XObject"); in InitJPEG()
26 pDict->SetAtName("Subtype", "Image"); in InitJPEG()
27 pDict->SetAtInteger("Width", width); in InitJPEG()
28 pDict->SetAtInteger("Height", height); in InitJPEG()
41 pDict->SetAt("Decode", pDecode); in InitJPEG()
43 pDict->SetAtName("ColorSpace", csname); in InitJPEG()
44 pDict->SetAtInteger("BitsPerComponent", bits); in InitJPEG()
45 pDict->SetAtName("Filter", "DCTDecode"); in InitJPEG()
48 pDict->SetAt("DecodeParms", pParms); in InitJPEG()
[all …]
/external/pdfium/core/src/fxcodec/jbig2/
DJBig2_PddProc.cpp21 std::unique_ptr<CJBig2_PatternDict> pDict(new CJBig2_PatternDict()); in decode_Arith() local
22 pDict->NUMPATS = GRAYMAX + 1; in decode_Arith()
23 pDict->HDPATS = FX_Alloc(CJBig2_Image*, pDict->NUMPATS); in decode_Arith()
24 JBIG2_memset(pDict->HDPATS, 0, sizeof(CJBig2_Image*) * pDict->NUMPATS); in decode_Arith()
53 pDict->HDPATS[GRAY] = BHDC->subImage(HDPW * GRAY, 0, HDPW, HDPH); in decode_Arith()
57 return pDict.release(); in decode_Arith()
64 std::unique_ptr<CJBig2_PatternDict> pDict(new CJBig2_PatternDict()); in decode_MMR() local
65 pDict->NUMPATS = GRAYMAX + 1; in decode_MMR()
66 pDict->HDPATS = FX_Alloc(CJBig2_Image*, pDict->NUMPATS); in decode_MMR()
67 JBIG2_memset(pDict->HDPATS, 0, sizeof(CJBig2_Image*) * pDict->NUMPATS); in decode_MMR()
[all …]
/external/pdfium/core/src/fpdfapi/fpdf_page/
Dfpdf_page_pattern.cpp45 CPDF_Dictionary* pDict = m_pPatternObj->GetDict(); in CPDF_TilingPattern() local
46 m_Pattern2Form = pDict->GetMatrix("Matrix"); in CPDF_TilingPattern()
47 m_bColored = pDict->GetInteger("PaintType") == 1; in CPDF_TilingPattern()
61 CPDF_Dictionary* pDict = m_pPatternObj->GetDict(); in Load() local
62 if (!pDict) in Load()
65 m_bColored = pDict->GetInteger("PaintType") == 1; in Load()
66 m_XStep = (FX_FLOAT)FXSYS_fabs(pDict->GetNumber("XStep")); in Load()
67 m_YStep = (FX_FLOAT)FXSYS_fabs(pDict->GetNumber("YStep")); in Load()
75 m_BBox = pDict->GetRect("BBox"); in Load()
93 CPDF_Dictionary* pDict = m_pPatternObj->GetDict(); in CPDF_ShadingPattern() local
[all …]
Dfpdf_page_image.cpp87 CPDF_Dictionary* pDict = pStream->GetDict(); in LoadImageF() local
89 m_pInlineDict = ToDictionary(pDict->Clone()); in LoadImageF()
91 m_pOC = pDict->GetDict("OC"); in LoadImageF()
92 m_bIsMask = !pDict->KeyExist("ColorSpace") || pDict->GetInteger("ImageMask"); in LoadImageF()
93 m_bInterpolate = pDict->GetInteger("Interpolate"); in LoadImageF()
94 m_Height = pDict->GetInteger("Height"); in LoadImageF()
95 m_Width = pDict->GetInteger("Width"); in LoadImageF()
Dfpdf_page_parser_old.cpp79 CPDF_Dictionary* pDict = new CPDF_Dictionary; in Handle_BeginImage() local
87 pDict->Release(); in Handle_BeginImage()
101 pDict->SetAtReference(key, m_pDocument, dwObjNum); in Handle_BeginImage()
103 pDict->SetAt(key, pObj.release()); in Handle_BeginImage()
106 PDF_ReplaceAbbr(pDict); in Handle_BeginImage()
108 if (pDict->KeyExist("ColorSpace")) { in Handle_BeginImage()
109 pCSObj = pDict->GetElementValue("ColorSpace"); in Handle_BeginImage()
116 pDict->SetAt("ColorSpace", pCSObj); in Handle_BeginImage()
122 m_pDocument, pDict, pCSObj, m_Options.m_bDecodeInlineImage); in Handle_BeginImage()
140 pDict->Release(); in Handle_BeginImage()
[all …]
Dfpdf_page_func.cpp502 CPDF_Dictionary* pDict = pStream->GetDict(); in v_Init() local
503 CPDF_Array* pSize = pDict->GetArray("Size"); in v_Init()
504 CPDF_Array* pEncode = pDict->GetArray("Encode"); in v_Init()
505 CPDF_Array* pDecode = pDict->GetArray("Decode"); in v_Init()
506 m_nBitsPerSample = pDict->GetInteger("BitsPerSample"); in v_Init()
518 m_pEncodeInfo[i].sizes = pDict->GetInteger("Size"); in v_Init()
685 CPDF_Dictionary* pDict = pObj->GetDict(); in v_Init() local
686 if (!pDict) { in v_Init()
689 CPDF_Array* pArray0 = pDict->GetArray("C0"); in v_Init()
696 CPDF_Array* pArray1 = pDict->GetArray("C1"); in v_Init()
[all …]
Dfpdf_page_doc.cpp276 CPDF_Dictionary* pDict = new CPDF_Dictionary; in GetStandardFont() local
277 pDict->SetAtName("Type", "Font"); in GetStandardFont()
278 pDict->SetAtName("Subtype", "Type1"); in GetStandardFont()
279 pDict->SetAtName("BaseFont", fontName); in GetStandardFont()
281 pDict->SetAt("Encoding", pEncoding->Realize()); in GetStandardFont()
283 m_pPDFDoc->AddIndirectObject(pDict); in GetStandardFont()
284 CPDF_Font* pFont = CPDF_Font::CreateFontF(m_pPDFDoc, pDict); in GetStandardFont()
289 m_FontMap[pDict] = fontData; in GetStandardFont()
424 CPDF_Dictionary* pDict = pPatternObj ? pPatternObj->GetDict() : nullptr; in GetPattern() local
425 if (pDict) { in GetPattern()
[all …]
Dfpdf_page_colors.cpp336 CPDF_Dictionary* pDict = pArray->GetDict(1); in v_Load() local
337 if (!pDict) in v_Load()
340 CPDF_Array* pParam = pDict->GetArray("WhitePoint"); in v_Load()
345 pParam = pDict->GetArray("BlackPoint"); in v_Load()
349 m_Gamma = pDict->GetNumber("Gamma"); in v_Load()
412 CPDF_Dictionary* pDict = pArray->GetDict(1); in v_Load() local
413 if (!pDict) in v_Load()
416 CPDF_Array* pParam = pDict->GetArray("WhitePoint"); in v_Load()
421 pParam = pDict->GetArray("BlackPoint"); in v_Load()
425 pParam = pDict->GetArray("Gamma"); in v_Load()
[all …]
/external/pdfium/core/src/fpdfapi/fpdf_parser/
Dfpdf_parser_fdf.cpp98 CPDF_Dictionary* pDict = m_pRootDict ? m_pRootDict->GetDict("FDF") : NULL; in GetWin32Path() local
99 CPDF_Object* pFileSpec = pDict ? pDict->GetElementValue("F") : NULL; in GetWin32Path()
149 } else if (const CPDF_Dictionary* pDict = pFileSpec->AsDictionary()) { in FPDF_FileSpec_GetWin32Path() local
150 wsFileName = pDict->GetUnicodeText("UF"); in FPDF_FileSpec_GetWin32Path()
152 wsFileName = CFX_WideString::FromLocal(pDict->GetString("F")); in FPDF_FileSpec_GetWin32Path()
154 if (pDict->GetString("FS") == "URL") { in FPDF_FileSpec_GetWin32Path()
157 if (wsFileName.IsEmpty() && pDict->KeyExist("DOS")) { in FPDF_FileSpec_GetWin32Path()
158 wsFileName = CFX_WideString::FromLocal(pDict->GetString("DOS")); in FPDF_FileSpec_GetWin32Path()
Dfpdf_parser_parser.cpp74 int32_t GetDirectInteger(CPDF_Dictionary* pDict, const CFX_ByteStringC& key) { in GetDirectInteger() argument
75 CPDF_Number* pObj = ToNumber(pDict->GetElement(key)); in GetDirectInteger()
107 bool IsSignatureDict(const CPDF_Dictionary* pDict) { in IsSignatureDict() argument
108 CPDF_Object* pType = pDict->GetElementValue("Type"); in IsSignatureDict()
110 pType = pDict->GetElementValue("FT"); in IsSignatureDict()
137 void CPDF_Parser::SetEncryptDictionary(CPDF_Dictionary* pDict) { in SetEncryptDictionary() argument
138 m_pEncryptDict = pDict; in SetEncryptDictionary()
417 std::unique_ptr<CPDF_Dictionary, ReleaseDeleter<CPDF_Dictionary>> pDict( in LoadAllCrossRefV4() local
419 if (!pDict) in LoadAllCrossRefV4()
421 xrefpos = GetDirectInteger(pDict.get(), "Prev"); in LoadAllCrossRefV4()
[all …]
Dfpdf_parser_objects.cpp286 CPDF_Dictionary* pDict = pThis->GetDict(); in CloneInternal() local
287 if (pDict) { in CloneInternal()
288 pDict = ToDictionary(pDict->CloneInternal(bDirect, visited)); in CloneInternal()
290 return new CPDF_Stream(acc.DetachData(), streamSize, pDict); in CloneInternal()
491 if (CPDF_Dictionary* pDict = p->AsDictionary()) in GetDict() local
492 return pDict; in GetDict()
667 if (CPDF_Dictionary* pDict = p->AsDictionary()) in GetDict() local
668 return pDict; in GetDict()
811 CPDF_Stream::CPDF_Stream(uint8_t* pData, FX_DWORD size, CPDF_Dictionary* pDict) in CPDF_Stream() argument
813 m_pDict(pDict), in CPDF_Stream()
[all …]
/external/pdfium/fpdfsdk/src/pdfwindow/
DPWL_Icon.cpp62 if (CPDF_Dictionary* pDict = m_pPDFStream->GetDict()) { in GetImageSize() local
63 CPDF_Rect rect = pDict->GetRect("BBox"); in GetImageSize()
73 if (CPDF_Dictionary* pDict = m_pPDFStream->GetDict()) { in GetImageMatrix() local
74 return pDict->GetMatrix("Matrix"); in GetImageMatrix()
86 if (CPDF_Dictionary* pDict = m_pPDFStream->GetDict()) { in GetImageAlias() local
87 return pDict->GetString("Name"); in GetImageAlias()
/external/pdfium/core/include/fpdfdoc/
Dfpdf_doc.h86 explicit CPDF_Bookmark(CPDF_Dictionary* pDict) : m_pDict(pDict) {} in CPDF_Bookmark() argument
215 explicit CPDF_Action(CPDF_Dictionary* pDict) : m_pDict(pDict) {} in CPDF_Action() argument
269 CPDF_AAction(CPDF_Dictionary* pDict = NULL) { m_pDict = pDict; }
361 explicit CPDF_Link(CPDF_Dictionary* pDict) : m_pDict(pDict) {} in CPDF_Link() argument
387 CPDF_Annot(CPDF_Dictionary* pDict, CPDF_AnnotList* pList);
743 void SetFieldDict(CPDF_Dictionary* pDict) { m_pDict = pDict; } in SetFieldDict() argument
832 CPDF_FormField(CPDF_InterForm* pForm, CPDF_Dictionary* pDict);
874 CPDF_IconFit(CPDF_Dictionary* pDict = NULL) { m_pDict = pDict; }
1092 explicit CPDF_ApSettings(CPDF_Dictionary* pDict);
/external/pdfium/fpdfsdk/src/fpdfxfa/
Dfpdfxfa_page.cpp43 CPDF_Dictionary* pDict = pPDFDoc->GetPage(m_iPageIndex); in LoadPDFPage() local
44 if (pDict == NULL) in LoadPDFPage()
47 if (m_pPDFPage->m_pFormDict == pDict) in LoadPDFPage()
55 m_pPDFPage->Load(pPDFDoc, pDict); in LoadPDFPage()

123