pdf2djvu: rebuild for poppler-26.07.0
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
--- a/pdf-document-map.cc
|
||||
+++ b/pdf-document-map.cc
|
||||
@@ -41,9 +41,14 @@ pdf::DocumentMap::DocumentMap(const std:
|
||||
std::unique_ptr<pdf::Document> doc(new pdf::Document(path));
|
||||
pdf::Catalog *catalog = doc->getCatalog();
|
||||
for (int i = 0; i < doc->getNumPages(); i++) {
|
||||
+#if POPPLER_VERSION_INT >= 260700
|
||||
+ std::string str;
|
||||
+ if (catalog->indexToLabel(i, &str)) {
|
||||
+#else
|
||||
pdf::String s;
|
||||
if (catalog->indexToLabel(i, &s)) {
|
||||
std::string str = pdf::string_as_utf8(&s);
|
||||
+#endif
|
||||
this->labels.push_back(str);
|
||||
}
|
||||
else
|
||||
@@ -1,7 +1,7 @@
|
||||
# Template file for 'pdf2djvu'
|
||||
pkgname=pdf2djvu
|
||||
version=0.9.19
|
||||
revision=13
|
||||
revision=14
|
||||
build_style=gnu-configure
|
||||
hostmakedepends="pkg-config djvulibre gettext"
|
||||
makedepends="djvulibre-devel poppler-devel libgraphicsmagick-devel exiv2-devel
|
||||
|
||||
Reference in New Issue
Block a user