diff options
author | Armin Le Grand <alg@apache.org> | 2012-02-06 16:00:12 +0000 |
---|---|---|
committer | Armin Le Grand <alg@apache.org> | 2012-02-06 16:00:12 +0000 |
commit | 7c9d399dc16f93f43023790b3d047f25d202712d (patch) | |
tree | 5b0903aee4b5d076e15ad354aeadc5d5c7bef38d /vcl/source/gdi | |
parent | 462931a5f9d05865e74dc93953a2995488157328 (diff) |
#115962# Better (but not yet optimal, see comments in task) handling of MetaFloatTransparentAction in PDF export
Diffstat (limited to 'vcl/source/gdi')
-rw-r--r-- | vcl/source/gdi/pdfwriter_impl2.cxx | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/vcl/source/gdi/pdfwriter_impl2.cxx b/vcl/source/gdi/pdfwriter_impl2.cxx index 488460ac873d..f7919a397fb8 100644 --- a/vcl/source/gdi/pdfwriter_impl2.cxx +++ b/vcl/source/gdi/pdfwriter_impl2.cxx @@ -420,7 +420,12 @@ void PDFWriterImpl::playMetafile( const GDIMetaFile& i_rMtf, vcl::PDFExtOutDevDa else { const Size aDstSizeTwip( pDummyVDev->PixelToLogic( pDummyVDev->LogicToPixel( rSize ), MAP_TWIP ) ); - sal_Int32 nMaxBmpDPI = i_rContext.m_bOnlyLosslessCompression ? 300 : 72; + + // #115962# Always use at least 300 DPI for bitmap conversion of transparence gradients, + // else the quality is not acceptable (see bugdoc as example) + // sal_Int32 nMaxBmpDPI = i_rContext.m_bOnlyLosslessCompression ? 300 : 72; + sal_Int32 nMaxBmpDPI(300); + if( i_rContext.m_nMaxImageResolution > 50 ) { if ( nMaxBmpDPI > i_rContext.m_nMaxImageResolution ) |