| Index: fpdfsdk/cpdfsdk_interform.cpp
|
| diff --git a/fpdfsdk/cpdfsdk_interform.cpp b/fpdfsdk/cpdfsdk_interform.cpp
|
| index ce6206a3f7e4d2c0bda36d8102c41952e53d155a..01889d59472126d7f3385955393d03b39cef290b 100644
|
| --- a/fpdfsdk/cpdfsdk_interform.cpp
|
| +++ b/fpdfsdk/cpdfsdk_interform.cpp
|
| @@ -8,6 +8,7 @@
|
|
|
| #include <algorithm>
|
| #include <memory>
|
| +#include <vector>
|
|
|
| #include "core/fpdfapi/fpdf_page/include/cpdf_page.h"
|
| #include "core/fpdfapi/fpdf_parser/include/cfdf_document.h"
|
| @@ -524,7 +525,7 @@ FX_BOOL CPDFSDK_InterForm::ExportFieldsToFDFTextBuf(
|
| bool bIncludeOrExclude,
|
| CFX_ByteTextBuf& textBuf) {
|
| std::unique_ptr<CFDF_Document> pFDF(m_pInterForm->ExportToFDF(
|
| - m_pDocument->GetPath().AsStringC(), fields, bIncludeOrExclude));
|
| + m_pDocument->GetPath().AsStringC(), fields, bIncludeOrExclude, false));
|
| return pFDF ? pFDF->WriteBuf(textBuf) : FALSE;
|
| }
|
|
|
| @@ -543,7 +544,8 @@ FX_BOOL CPDFSDK_InterForm::SubmitForm(const CFX_WideString& sDestination,
|
|
|
| CPDFSDK_Environment* pEnv = m_pDocument->GetEnv();
|
| CFX_WideString wsPDFFilePath = m_pDocument->GetPath();
|
| - CFDF_Document* pFDFDoc = m_pInterForm->ExportToFDF(wsPDFFilePath.AsStringC());
|
| + CFDF_Document* pFDFDoc =
|
| + m_pInterForm->ExportToFDF(wsPDFFilePath.AsStringC(), false);
|
| if (!pFDFDoc)
|
| return FALSE;
|
|
|
| @@ -569,7 +571,7 @@ FX_BOOL CPDFSDK_InterForm::SubmitForm(const CFX_WideString& sDestination,
|
|
|
| FX_BOOL CPDFSDK_InterForm::ExportFormToFDFTextBuf(CFX_ByteTextBuf& textBuf) {
|
| CFDF_Document* pFDF =
|
| - m_pInterForm->ExportToFDF(m_pDocument->GetPath().AsStringC());
|
| + m_pInterForm->ExportToFDF(m_pDocument->GetPath().AsStringC(), false);
|
| if (!pFDF)
|
| return FALSE;
|
|
|
|
|