summaryrefslogtreecommitdiff
path: root/filter/source/pdf
diff options
context:
space:
mode:
authorAron Budea <aron.budea@collabora.com>2019-09-20 04:54:00 +0200
committerMuhammet Kara <muhammet.kara@collabora.com>2019-09-23 15:45:28 +0200
commitcd6780aae1392d4c1af0b15b311a4966834a9602 (patch)
tree236826621ee80c81c7bf926d9630b81be916667c /filter/source/pdf
parentea1d4f6ca1e6f9b7025d5ab2d8cd77139bd733ed (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>
Diffstat (limited to 'filter/source/pdf')
-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 952a33ad71f4..9c023010f9ac 100644
--- a/filter/source/pdf/pdfexport.cxx
+++ b/filter/source/pdf/pdfexport.cxx
@@ -239,7 +239,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();
}