summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAron Budea <aron.budea@collabora.com>2019-09-20 04:54:00 +0200
committerAndras Timar <andras.timar@collabora.com>2019-09-30 14:34:11 +0200
commita20b4e63c74329200bd85b42c57c831fbafca88f (patch)
tree2b9aef1f6047b25e320f9f36d22a694811e39d0c
parent2939a0f4805c7f708a803d624c5ac42f78bcf791 (diff)
tdf#124377: enable anti-aliasing metafile during redaction
Change-Id: I6c8a0f6ceaad5d9ec47cce1b00b8ccdd77530aaf Reviewed-on: https://gerrit.libreoffice.org/79266 Tested-by: Jenkins Reviewed-by: Muhammet Kara <muhammet.kara@collabora.com> (cherry picked from commit cd6780aae1392d4c1af0b15b311a4966834a9602) Reviewed-on: https://gerrit.libreoffice.org/79481 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com> Reviewed-by: Andras Timar <andras.timar@collabora.com>
-rw-r--r--filter/source/pdf/pdfexport.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/filter/source/pdf/pdfexport.cxx b/filter/source/pdf/pdfexport.cxx
index 9013c63e2973..1aa6cbd61751 100644
--- a/filter/source/pdf/pdfexport.cxx
+++ b/filter/source/pdf/pdfexport.cxx
@@ -235,7 +235,8 @@ bool PDFExport::ExportSelection( vcl::PDFWriter& rPDFWriter,
try
{
Graphic aGraph(aMtf);
- BitmapEx bmp = aGraph.GetBitmapEx();
+ // use antialiasing to improve how graphic objects look
+ BitmapEx bmp = aGraph.GetBitmapEx(GraphicConversionParameters(Size(0, 0), false, true, false));
Graphic bgraph(bmp);
aMtf = bgraph.GetGDIMetaFile();
}