xmlsecurity/workben/pdfverify.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
New commits: commit 0ef286389e4f40fd59890937c6c6b1e7ce4a5064 Author: offtkp <[email protected]> AuthorDate: Sat Jul 16 19:22:15 2022 +0300 Commit: Tomaž Vajngerl <[email protected]> CommitDate: Tue Jul 19 16:20:38 2022 +0200 Replace old png writer in pdfverify.cxx Change-Id: Iee38f9e86151717001ec4e4c083ec658603ad7c2 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/137139 Tested-by: Jenkins Reviewed-by: Tomaž Vajngerl <[email protected]> diff --git a/xmlsecurity/workben/pdfverify.cxx b/xmlsecurity/workben/pdfverify.cxx index f04db1fa62cf..9a09a36088c6 100644 --- a/xmlsecurity/workben/pdfverify.cxx +++ b/xmlsecurity/workben/pdfverify.cxx @@ -20,7 +20,7 @@ #include <sal/log.hxx> #include <sal/main.h> #include <tools/diagnose_ex.h> -#include <vcl/pngwrite.hxx> +#include <vcl/filter/PngImageWriter.hxx> #include <vcl/svapp.hxx> #include <vcl/graphicfilter.hxx> #include <vcl/filter/pdfdocument.hxx> @@ -47,11 +47,11 @@ void generatePreview(std::string_view rPdfPath, std::string_view rPngPath) return; BitmapEx aBitmapEx = aGraphic.GetBitmapEx(); - vcl::PNGWriter aWriter(aBitmapEx); OUString aOutURL; osl::FileBase::getFileURLFromSystemPath(OUString::fromUtf8(rPngPath), aOutURL); SvFileStream aOutStream(aOutURL, StreamMode::WRITE); - aWriter.Write(aOutStream); + vcl::PngImageWriter aWriter(aOutStream); + aWriter.write(aBitmapEx); } int pdfVerify(int nArgc, char** pArgv)
