diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-10-25 11:16:47 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-10-25 15:04:17 +0200 |
commit | d1b7d7a8d16d222536534ccf92576ed1eb05e1a8 (patch) | |
tree | 878aaa1719bb45ee27aefb265232d7ec95e92906 /filter | |
parent | ac0e74209c4f7a7eb7702468cecd3b996227c278 (diff) |
tdf#126788 speed up export to pdf of complex table document
Shaves another 20% off the export time, bringing us to roughly the same
time as before commit
commit 4fc3466d23010d9553c31c662650072483b81588
Date: Thu Apr 14 09:19:35 2022 +0200
do not cache layout glyphs if fallback is involved
Change-Id: Ic595d4be7b05d857f3328ec28d1ef1232203cb03
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/141798
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'filter')
-rw-r--r-- | filter/source/pdf/pdffilter.cxx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/filter/source/pdf/pdffilter.cxx b/filter/source/pdf/pdffilter.cxx index 2d6f8743373f..f6596a3479e3 100644 --- a/filter/source/pdf/pdffilter.cxx +++ b/filter/source/pdf/pdffilter.cxx @@ -26,6 +26,7 @@ #include <unotools/ucbstreamhelper.hxx> #include <unotools/tempfile.hxx> #include <vcl/FilterConfigItem.hxx> +#include <vcl/glyphitemcache.hxx> #include <memory> #include <com/sun/star/io/XOutputStream.hpp> @@ -245,8 +246,12 @@ sal_Bool SAL_CALL PDFFilter::filter( const Sequence< PropertyValue >& rDescripto { FocusWindowWaitCursor aCur; + SalLayoutGlyphsCache::self()->SetCacheGlyphsWhenDoingFallbackFonts(true); + const bool bRet = implExport( rDescriptor ); + SalLayoutGlyphsCache::self()->SetCacheGlyphsWhenDoingFallbackFonts(false); + return bRet; } |