Index: fpdfsdk/src/fpdfsave.cpp |
diff --git a/fpdfsdk/src/fpdfsave.cpp b/fpdfsdk/src/fpdfsave.cpp |
index 598d93676c4a6a36d4f3cf75c286b13cce7cbd5a..b8e9c6e25c3b89c171b2f64dc8206eb8790c868d 100644 |
--- a/fpdfsdk/src/fpdfsave.cpp |
+++ b/fpdfsdk/src/fpdfsave.cpp |
@@ -84,7 +84,7 @@ FX_BOOL _SaveXFADocumentData(CPDFXFA_Document* pDocument, |
CPDF_Dictionary* pRoot = pPDFDocument->GetRoot(); |
if (pRoot == NULL) |
return FALSE; |
- CPDF_Dictionary* pAcroForm = pRoot->GetDict("AcroForm"); |
+ CPDF_Dictionary* pAcroForm = pRoot->GetDictBy("AcroForm"); |
if (NULL == pAcroForm) |
return FALSE; |
CPDF_Object* pXFA = pAcroForm->GetElement("XFA"); |
@@ -119,7 +119,7 @@ FX_BOOL _SaveXFADocumentData(CPDFXFA_Document* pDocument, |
// template |
if (iTemplate > -1) { |
- CPDF_Stream* pTemplateStream = pArray->GetStream(iTemplate); |
+ CPDF_Stream* pTemplateStream = pArray->GetStreamAt(iTemplate); |
CPDF_StreamAcc streamAcc; |
streamAcc.LoadAllData(pTemplateStream); |
uint8_t* pData = (uint8_t*)streamAcc.GetData(); |