9e1d1f6cff
Remove requirement of pstrams-devel as they are not supported and has been removed from Fedora Backport 2 commits from upstream to build with current poppler
24 lines
723 B
Diff
24 lines
723 B
Diff
From dca43e8182174bc04e107eaefcafcfdfdf9bcd61 Mon Sep 17 00:00:00 2001
|
|
From: Jakub Wilk <jwilk@jwilk.net>
|
|
Date: Wed, 2 Mar 2022 10:40:37 +0000
|
|
Subject: pdf-backend: simplify Poppler 22.03 compat code.
|
|
|
|
|
|
diff --git a/pdf-backend.cc b/pdf-backend.cc
|
|
index ba85da2..8fab764 100644
|
|
--- a/pdf-backend.cc
|
|
+++ b/pdf-backend.cc
|
|
@@ -129,7 +129,11 @@ void pdf::Environment::set_antialias(bool value)
|
|
*/
|
|
|
|
pdf::Document::Document(const std::string &file_name)
|
|
-: ::PDFDoc(new pdf::String(file_name.c_str()), nullptr, nullptr)
|
|
+#if POPPLER_VERSION >= 220300
|
|
+: ::PDFDoc(std::make_unique<pdf::String>(file_name.c_str()))
|
|
+#else
|
|
+: ::PDFDoc(new pdf::String(file_name.c_str()))
|
|
+#endif
|
|
{
|
|
if (!this->isOk())
|
|
throw LoadError();
|