Package Details: pdf2djvu 0.9.19-9

Git Clone URL: https://aur.archlinux.org/pdf2djvu.git (read-only, click to copy)
Package Base: pdf2djvu
Description: Creates DjVu files from PDF files
Upstream URL: https://jwilk.net/software/pdf2djvu
Licenses: GPL
Submitter: arojas
Maintainer: blueowl
Last Packager: blueowl
Votes: 7
Popularity: 0.000013
First Submitted: 2021-05-08 09:21 (UTC)
Last Updated: 2026-08-27 11:01 (UTC)

Latest Comments

1 2 3 4 Next › Last »

simona commented on 2026-08-27 12:40 (UTC)

solved. tnx.

Pafrape commented on 2026-08-26 16:05 (UTC)

Error during installation.

make: *** [<internal command>: pdf-backend.o] Error 1 ==> ERROR: An error occurred in build(). Aborting... -> error compiling: pdf2djvu - exit status 4 -> Failed to install the following packages. Manual intervention is required: pdf2djvu - exit status 4

Thank you in advance for correcting the error.

simona commented on 2026-08-22 19:16 (UTC)

In file included from /usr/include/c++/16/memory:80,
from /usr/include/poppler/CryptoSignBackend.h:15:
• candidate 1: ‘template<class _Up, class _Ep> typename std::enable_if<std::__and_<std::__and_<std::is_convertible<typename std::unique_ptr<Up, _Ep>::pointer, typename std::__uniq_ptr_impl<_Tp, _Dp>::pointer>, std::__not<std::is_array<_Up> > >, std::is_assignable<_Dp&, _Ep&&> >::value, std::unique_ptr<_Tp, _Dp>&>::type std::unique_ptr<_Tp, _Dp>::operator=(std::unique_ptr<_Up, _Ep>&&) [with _Ep = _Up; _Tp = const GooString; _Dp = std::default_delete<const GooString>]’
/usr/include/c++/16/bits/unique_ptr.h:434:9:
434 |         operator=(unique_ptr<_Up, _Ep>&& __u) noexcept
|         ^~
• template argument deduction/substitution failed:
•   ‘std::optional<std::__cxx11::basic_string\<char> >’ is not derived from ‘std::unique_ptr<_Tp, _Dp>’
pdf-backend.cc:252:32:
252 |   mstring = this->readMetadata();
|                                ^
• candidate 2: ‘std::unique_ptr<_Tp, _Dp>& std::unique_ptr<_Tp, _Dp>::operator=(std::unique_ptr<_Tp, _Dp>&&) [with _Tp = const GooString; _Dp = std::default_delete<const GooString>]’
/usr/include/c++/16/bits/unique_ptr.h:418:19:
418 |       unique_ptr& operator=(unique_ptr&&) = default;
|                   ^~
• no known conversion for argument 1 from ‘std::optional<std::__cxx11::basic_string\<char> >’ to ‘std::unique_ptr<const GooString>&&’
/usr/include/c++/16/bits/unique_ptr.h:418:29:
418 |       unique_ptr& operator=(unique_ptr&&) = default;
|                             ^~
• candidate 3: ‘std::unique_ptr<_Tp, _Dp>& std::unique_ptr<_Tp, _Dp>::operator=(std::nullptr_t) [with _Tp = const GooString; _Dp = std::default_delete<const GooString>; std::nullptr_t = std::nullptr_t]’
/usr/include/c++/16/bits/unique_ptr.h:444:7:
444 |       operator=(nullptr_t) noexcept
|       ^~
• no known conversion for argument 1 from ‘std::optional<std::__cxx11::basic_string\<char> >’ to ‘std::nullptr_t’
/usr/include/c++/16/bits/unique_ptr.h:444:17:
444 |       operator=(nullptr_t) noexcept
|                 ^
make: *** [<incorporato>: pdf-backend.o] Error 1

simona commented on 2026-07-30 23:07 (UTC)

tnx solved.

simona commented on 2026-07-14 11:31 (UTC)

pdf-document-map.cc: In constructor ‘pdf::DocumentMap::DocumentMap(const std::vector<const char*>&)’:
pdf-document-map.cc:45:42: error: ‘std::__cxx11::basic_string<char>’ is an inaccessible base of ‘GooString’
45 |                 if (catalog->indexToLabel(i, &s)) {
|                     ~^~~
make: *** [<incorporato>: pdf-document-map.o] Error 1

simona commented on 2026-06-30 09:41 (UTC)

solved. tnx for patch.

blueowl commented on 2026-06-30 09:22 (UTC)

Updated.

@amos, thanks for the patch.

amos commented on 2026-06-18 13:20 (UTC)

Two more required patches:

@@ -163,7 +163,11 @@ static void cmyk_to_rgb(const double cmyk[], double rgb[])
   pdf::gfx::RgbColor rgb_cc;
   for (int i = 0; i < 4; i++)
     cmyk_cc.c[i] = pdf::gfx::double_as_color_component(cmyk[i]);
+#if POPPLER_VERSION >= 260600
+  cmyk_space.getRGB(cmyk_cc, &rgb_cc);
+#else
   cmyk_space.getRGB(&cmyk_cc, &rgb_cc);
+#endif
   rgb[0] = pdf::gfx::color_component_as_double(rgb_cc.r);
   rgb[1] = pdf::gfx::color_component_as_double(rgb_cc.g);
   rgb[2] = pdf::gfx::color_component_as_double(rgb_cc.b);
@@ -175,7 +175,11 @@ -static bool annotations_callback(pdf::ant::Annotation *annotation, void *user_data)
   std::string border_color;
   if (annotation->getType() != pdf::ant::Annotation::typeLink)
     return true;
+#if POPPLER_VERSION >= 260600
+  const pdf::ant::Color *color = annotation->getColor();
+#else
   pdf::ant::Color *color = annotation->getColor();
+#endif
   if (color == nullptr)
   {
     border_colors.push_back("");

FriedrichFroebel commented on 2026-05-24 20:02 (UTC)

This build failure is related to poppler 26.05.0 having been released and removing this type. Unfortunately, there regularly are upstream changes to poppler which tend to break functionality of pdf2djvu.

As mentioned in one of the previous comments, I am currently trying to keep a fork of the archived pdf2djvu repository compatible with upstream changes, although not doing any explicit releases, thus possibly requiring a dedicated pdf2djvu-git AUR package.

simona commented on 2026-05-15 17:30 (UTC)

autoconf.hh:66:9: warning: ‘POPPLER_VERSION’ redefined
66 | #define POPPLER_VERSION 260500
|         ^
In file included from /usr/include/poppler/Error.h:32,
from /usr/include/poppler/CryptoSignBackend.h:20,
from /usr/include/poppler/PDFDoc.h:57,
from pdf-backend.hh:31:
/usr/include/poppler/poppler-config.h:33:9: note: this is the location of the previous definition
33 | #define POPPLER_VERSION "26.05.0"
|         ^
pdf-backend.hh:66:15: error: ‘SplashCoord’ in namespace ‘::’ does not name a type; did you mean ‘SplashColor’?
66 |     typedef ::SplashCoord Coord;
|               ^~~
|               SplashColor
make: *** [<incorporato>: image-filter.o] Error 1
==> ERRORE: Si è verificato un errore in build().
<(pre>