• Home
  • Raw
  • Download

Lines Matching refs:pDoc

54   CPDF_Document* pDoc = CPDFDocumentFromFPDFDocument(document);  in FPDFDoc_GetAttachmentCount()  local
55 if (!pDoc) in FPDFDoc_GetAttachmentCount()
58 return CPDF_NameTree(pDoc, "EmbeddedFiles").GetCount(); in FPDFDoc_GetAttachmentCount()
63 CPDF_Document* pDoc = CPDFDocumentFromFPDFDocument(document); in FPDFDoc_AddAttachment() local
64 if (!pDoc) in FPDFDoc_AddAttachment()
67 CPDF_Dictionary* pRoot = pDoc->GetRoot(); in FPDFDoc_AddAttachment()
78 pNames = pDoc->NewIndirect<CPDF_Dictionary>(); in FPDFDoc_AddAttachment()
79 pRoot->SetNewFor<CPDF_Reference>("Names", pDoc, pNames->GetObjNum()); in FPDFDoc_AddAttachment()
84 CPDF_Dictionary* pFiles = pDoc->NewIndirect<CPDF_Dictionary>(); in FPDFDoc_AddAttachment()
86 pNames->SetNewFor<CPDF_Reference>("EmbeddedFiles", pDoc, in FPDFDoc_AddAttachment()
91 CPDF_Dictionary* pFile = pDoc->NewIndirect<CPDF_Dictionary>(); in FPDFDoc_AddAttachment()
97 CPDF_NameTree nameTree(pDoc, "EmbeddedFiles"); in FPDFDoc_AddAttachment()
98 if (!nameTree.AddValueAndName(pFile->MakeReference(pDoc), wsName)) { in FPDFDoc_AddAttachment()
107 CPDF_Document* pDoc = CPDFDocumentFromFPDFDocument(document); in FPDFDoc_GetAttachment() local
108 if (!pDoc || index < 0) in FPDFDoc_GetAttachment()
111 CPDF_NameTree nameTree(pDoc, "EmbeddedFiles"); in FPDFDoc_GetAttachment()
122 CPDF_Document* pDoc = CPDFDocumentFromFPDFDocument(document); in FPDFDoc_DeleteAttachment() local
123 if (!pDoc || index < 0) in FPDFDoc_DeleteAttachment()
126 CPDF_NameTree nameTree(pDoc, "EmbeddedFiles"); in FPDFDoc_DeleteAttachment()
220 CPDF_Document* pDoc = CPDFDocumentFromFPDFDocument(document); in FPDFAttachment_SetFile() local
221 if (!pFile || !pFile->IsDictionary() || !pDoc || len > INT_MAX) in FPDFAttachment_SetFile()
256 CPDF_Stream* pFileStream = pDoc->NewIndirect<CPDF_Stream>( in FPDFAttachment_SetFile()
260 pEFDict->SetNewFor<CPDF_Reference>("F", pDoc, pFileStream->GetObjNum()); in FPDFAttachment_SetFile()