diff options
Diffstat (limited to 'fxjs/xfa')
-rw-r--r-- | fxjs/xfa/cjx_node.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/fxjs/xfa/cjx_node.cpp b/fxjs/xfa/cjx_node.cpp index dc4cd30132..44a5a1a42c 100644 --- a/fxjs/xfa/cjx_node.cpp +++ b/fxjs/xfa/cjx_node.cpp @@ -352,10 +352,7 @@ CJS_Return CJX_Node::saveXML(CFX_V8* runtime, pMemoryStream->WriteString(bsXMLHeader.AsStringView()); if (GetXFANode()->GetPacketType() == XFA_PacketType::Form) { - auto proxy = - pdfium::MakeRetain<CFX_SeekableStreamProxy>(pMemoryStream, true); - proxy->SetCodePage(FX_CODEPAGE_UTF8); - XFA_DataExporter_RegenerateFormFile(GetXFANode(), proxy, true); + XFA_DataExporter_RegenerateFormFile(GetXFANode(), pMemoryStream, true); } else { pElement->Save(pMemoryStream); } |