diff options
Diffstat (limited to 'qt6/src')
-rw-r--r-- | qt6/src/poppler-document.cc | 2 | ||||
-rw-r--r-- | qt6/src/poppler-page.cc | 12 | ||||
-rw-r--r-- | qt6/src/poppler-private.h | 4 |
3 files changed, 5 insertions, 13 deletions
diff --git a/qt6/src/poppler-document.cc b/qt6/src/poppler-document.cc index 5f760b0e..1fdd5e52 100644 --- a/qt6/src/poppler-document.cc +++ b/qt6/src/poppler-document.cc @@ -675,9 +675,7 @@ Document::RenderBackend Document::renderBackend() const QSet<Document::RenderBackend> Document::availableRenderBackends() { QSet<Document::RenderBackend> ret; -#if defined(HAVE_SPLASH) ret << Document::SplashBackend; -#endif ret << Document::QPainterBackend; return ret; } diff --git a/qt6/src/poppler-page.cc b/qt6/src/poppler-page.cc index 23ef1ad9..f7b82b50 100644 --- a/qt6/src/poppler-page.cc +++ b/qt6/src/poppler-page.cc @@ -60,10 +60,8 @@ #include <Link.h> #include <QPainterOutputDev.h> #include <Rendition.h> -#if defined(HAVE_SPLASH) -# include <SplashOutputDev.h> -# include <splash/SplashBitmap.h> -#endif +#include <SplashOutputDev.h> +#include <splash/SplashBitmap.h> #include "poppler-private.h" #include "poppler-page-transition-private.h" @@ -498,7 +496,6 @@ QImage Page::renderToImage(double xres, double yres, int xPos, int yPos, int w, QImage img; switch (m_page->parentDoc->m_backend) { case Poppler::Document::SplashBackend: { -#if defined(HAVE_SPLASH) SplashColor bgColor; const bool overprintPreview = m_page->parentDoc->m_hints & Document::OverprintPreview ? true : false; if (overprintPreview) { @@ -545,9 +542,9 @@ QImage Page::renderToImage(double xres, double yres, int xPos, int yPos, int w, splash_output.setVectorAntialias(m_page->parentDoc->m_hints & Document::Antialiasing ? true : false); splash_output.setFreeTypeHinting(m_page->parentDoc->m_hints & Document::TextHinting ? true : false, m_page->parentDoc->m_hints & Document::TextSlightHinting ? true : false); -# ifdef USE_CMS +#ifdef USE_CMS splash_output.setDisplayProfile(m_page->parentDoc->m_displayProfile); -# endif +#endif splash_output.startDoc(m_page->parentDoc->doc); @@ -558,7 +555,6 @@ QImage Page::renderToImage(double xres, double yres, int xPos, int yPos, int w, (hideAnnotations) ? annotDisplayDecideCbk : nullAnnotCallBack, nullptr, true); img = splash_output.getXBGRImage(true /* takeImageData */); -#endif break; } case Poppler::Document::QPainterBackend: { diff --git a/qt6/src/poppler-private.h b/qt6/src/poppler-private.h index 3b8e066f..a9daf765 100644 --- a/qt6/src/poppler-private.h +++ b/qt6/src/poppler-private.h @@ -56,9 +56,7 @@ #include <FontInfo.h> #include <OutputDev.h> #include <Error.h> -#if defined(HAVE_SPLASH) -# include <SplashOutputDev.h> -#endif +#include <SplashOutputDev.h> #include "poppler-qt6.h" #include "poppler-embeddedfile-private.h" |