From 90555e06b0c03777bca17ca423b765b3cb517f56 Mon Sep 17 00:00:00 2001 From: Artem Strygin Date: Fri, 28 Jul 2017 19:41:59 +0300 Subject: Add CPDF_Stream::ReplaceData method. Change-Id: I94b2e8f6fd522b97c917037e32fb3bcbeea0cbeb Reviewed-on: https://pdfium-review.googlesource.com/8911 Commit-Queue: Lei Zhang Reviewed-by: Lei Zhang --- fpdfsdk/pwl/cpwl_appstream.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'fpdfsdk/pwl/cpwl_appstream.cpp') diff --git a/fpdfsdk/pwl/cpwl_appstream.cpp b/fpdfsdk/pwl/cpwl_appstream.cpp index fe401639da..405a205507 100644 --- a/fpdfsdk/pwl/cpwl_appstream.cpp +++ b/fpdfsdk/pwl/cpwl_appstream.cpp @@ -1943,7 +1943,8 @@ void CPWL_AppStream::Write(const CFX_ByteString& sAPType, } pStreamDict->SetMatrixFor("Matrix", widget_->GetMatrix()); pStreamDict->SetRectFor("BBox", widget_->GetRotatedRect()); - pStream->SetData((uint8_t*)(sContents.c_str()), sContents.GetLength()); + pStream->SetDataAndRemoveFilter((uint8_t*)(sContents.c_str()), + sContents.GetLength()); } void CPWL_AppStream::Remove(const CFX_ByteString& sAPType) { -- cgit v1.2.3