diff options
author | Jan Holesovsky <kendy@collabora.com> | 2018-05-22 10:47:46 +0200 |
---|---|---|
committer | Jan Holesovsky <kendy@collabora.com> | 2018-05-22 12:17:21 +0200 |
commit | 6b73da7bee4d3d60af6ff1ee01039f7183e57680 (patch) | |
tree | 8080aa4068230ee305fb0dccf1f124449d369959 | |
parent | 978f52ff31d08d9da3c9c1b52064c433c956d9f6 (diff) |
Introduce a LO_IMPORT_USE_PDFIUM envvar to force PDFium for PDF import.cd-5.3-46
Change-Id: Ibb7734430b955dad4aefec22260ba8694ccb9183
-rw-r--r-- | sfx2/source/doc/objstor.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sfx2/source/doc/objstor.cxx b/sfx2/source/doc/objstor.cxx index 41759da4894a..e755e8fa2cc2 100644 --- a/sfx2/source/doc/objstor.cxx +++ b/sfx2/source/doc/objstor.cxx @@ -756,7 +756,7 @@ bool SfxObjectShell::DoLoad( SfxMedium *pMed ) { // Experimental PDF importing using PDFium. This is currently enabled for LOK only and // we handle it not via XmlFilterAdaptor but a new SdPdfFiler. - const bool bPdfiumImport = comphelper::LibreOfficeKit::isActive() && pMedium->GetFilter() && + const bool bPdfiumImport = (comphelper::LibreOfficeKit::isActive() || getenv("LO_IMPORT_USE_PDFIUM")) && pMedium->GetFilter() && (pMedium->GetFilter()->GetFilterName() == "draw_pdf_import"); pImpl->nLoadedFlags = SfxLoadedFlags::NONE; pImpl->bModelInitialized = false; |