summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Mehrbrodt <s.mehrbrodt@gmail.com>2014-03-02 16:48:18 +0100
committerCaolán McNamara <caolanm@redhat.com>2014-03-10 05:58:12 -0500
commitb6588bd7c831ce88a29131ca7ea8d3f3e082564e (patch)
tree167fd297c0a2bdbb9d4886a32fc205f07279620e
parentfc4ce3f5d0c630623eca5b55f8083d54e5beeeee (diff)
Reduce image resolution by default in PDF Export
PDF Files can quickly become very big when a user inserts some images. Most users don't know how to reduce the size of their images. This patch enables the resolution reduction for PDF Export to 300DPI by default. Change-Id: I3ce5191de35561b59169e52e2e2efbc4a343f025 Reviewed-on: https://gerrit.libreoffice.org/8422 Tested-by: Caolán McNamara <caolanm@redhat.com> Reviewed-by: Caolán McNamara <caolanm@redhat.com>
-rw-r--r--filter/source/pdf/pdfexport.cxx2
-rw-r--r--officecfg/registry/schema/org/openoffice/Office/Common.xcs2
2 files changed, 2 insertions, 2 deletions
diff --git a/filter/source/pdf/pdfexport.cxx b/filter/source/pdf/pdfexport.cxx
index 39c5d2242ab4..1ebe0feac1bf 100644
--- a/filter/source/pdf/pdfexport.cxx
+++ b/filter/source/pdf/pdfexport.cxx
@@ -106,7 +106,7 @@ PDFExport::PDFExport( const Reference< XComponent >& rxSrcDoc,
mbExportHiddenSlides ( sal_False ),
mnOpenBookmarkLevels ( -1 ),
mbUseLosslessCompression ( sal_False ),
- mbReduceImageResolution ( sal_False ),
+ mbReduceImageResolution ( sal_True ),
mbSkipEmptyPages ( sal_True ),
mbAddStream ( sal_False ),
mnMaxImageResolution ( 300 ),
diff --git a/officecfg/registry/schema/org/openoffice/Office/Common.xcs b/officecfg/registry/schema/org/openoffice/Office/Common.xcs
index 1e681e9715de..2fd0fe16ec2d 100644
--- a/officecfg/registry/schema/org/openoffice/Office/Common.xcs
+++ b/officecfg/registry/schema/org/openoffice/Office/Common.xcs
@@ -5001,7 +5001,7 @@
<desc>Specifies if the resolution of each image is reduced to the
resolution specified by the property MaxImageResolution.</desc>
</info>
- <value>false</value>
+ <value>true</value>
</prop>
<prop oor:name="MaxImageResolution" oor:type="xs:int" oor:nillable="false">
<info>