From 6b73da7bee4d3d60af6ff1ee01039f7183e57680 Mon Sep 17 00:00:00 2001 From: Jan Holesovsky Date: Tue, 22 May 2018 10:47:46 +0200 Subject: Introduce a LO_IMPORT_USE_PDFIUM envvar to force PDFium for PDF import. Change-Id: Ibb7734430b955dad4aefec22260ba8694ccb9183 --- sfx2/source/doc/objstor.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit v1.2.3