summaryrefslogtreecommitdiff
path: root/xmlsecurity
diff options
context:
space:
mode:
authorofftkp <parisoplop@gmail.com>2022-07-16 19:22:15 +0300
committerTomaž Vajngerl <quikee@gmail.com>2022-07-19 16:20:38 +0200
commit0ef286389e4f40fd59890937c6c6b1e7ce4a5064 (patch)
tree9e72335fcc1a4d92f3d666c9f9e7eccdec8b444a /xmlsecurity
parent88e55fb61ef626099e2a43562d788cf75d86fdf2 (diff)
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 <quikee@gmail.com>
Diffstat (limited to 'xmlsecurity')
-rw-r--r--xmlsecurity/workben/pdfverify.cxx6
1 files changed, 3 insertions, 3 deletions
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)