summaryrefslogtreecommitdiff
path: root/sfx2/source/doc/objstor.cxx
diff options
context:
space:
mode:
authorJan Holesovsky <kendy@collabora.com>2018-05-22 10:47:46 +0200
committerJan Holesovsky <kendy@collabora.com>2018-06-07 10:45:33 +0200
commit93307b07a2e0f1ff6637a739217b3aa951856e3d (patch)
treee345c4afbdc9530758aa7eb3937757b110256bf1 /sfx2/source/doc/objstor.cxx
parentf03ca93665fa974c5be2d9ca7082cb64ceafd7f8 (diff)
Introduce a LO_IMPORT_USE_PDFIUM envvar to force PDFium for PDF import.
Change-Id: Ibb7734430b955dad4aefec22260ba8694ccb9183
Diffstat (limited to 'sfx2/source/doc/objstor.cxx')
-rw-r--r--sfx2/source/doc/objstor.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sfx2/source/doc/objstor.cxx b/sfx2/source/doc/objstor.cxx
index 7eb2824636c7..9bc418f8f53a 100644
--- a/sfx2/source/doc/objstor.cxx
+++ b/sfx2/source/doc/objstor.cxx
@@ -749,7 +749,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;