if (pAcroForm == NULL) {\r
return FALSE;\r
}\r
- CPDF_Object* pElementXFA = pAcroForm->GetElement(FX_BSTRC("XFA"));\r
+ CPDF_Object* pElementXFA = pAcroForm->GetElementValue(FX_BSTRC("XFA"));\r
if (pElementXFA == NULL) {\r
return FALSE;\r
}\r
FX_INT32 iObjType = pElementXFA->GetType();\r
- if (iObjType == PDFOBJ_REFERENCE) {\r
- pElementXFA = pElementXFA->GetDirect();\r
- iObjType = pElementXFA->GetType();\r
- }\r
CFX_ArrayTemplate<CPDF_Stream*> xfaStreams;\r
if (iObjType == PDFOBJ_ARRAY) {\r
CPDF_Array* pXFAArray = (CPDF_Array*)pElementXFA;\r