summaryrefslogtreecommitdiff
path: root/qt6/src/poppler-page.cc
diff options
context:
space:
mode:
Diffstat (limited to 'qt6/src/poppler-page.cc')
-rw-r--r--qt6/src/poppler-page.cc12
1 files changed, 4 insertions, 8 deletions
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: {