pdf2djvu: rebuild for poppler-26.07.0

This commit is contained in:
Đoàn Trần Công Danh
2026-07-24 22:28:57 +07:00
parent 456d9a410c
commit 9b1fa10d40
2 changed files with 18 additions and 1 deletions
@@ -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 -1
View File
@@ -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