Package Details: pdf2htmlex 0.18.8.rc1-3

Git Clone URL: https://aur.archlinux.org/pdf2htmlex.git (read-only, click to copy)
Package Base: pdf2htmlex
Description: Convert PDF to HTML without losing text or format.
Upstream URL: https://github.com/pdf2htmlEX/pdf2htmlEX
Licenses: GPL3
Submitter: Francois_B
Maintainer: D3SOX
Last Packager: D3SOX
Votes: 14
Popularity: 0.30
First Submitted: 2015-08-09 18:45 (UTC)
Last Updated: 2025-06-23 09:48 (UTC)

Latest Comments

1 2 Next › Last »

D3SOX commented on 2025-06-23 09:47 (UTC) (edited on 2025-06-23 09:48 (UTC) by D3SOX)

Oh yes the recent change, fixed now @sirocco

sirocco commented on 2025-06-23 09:13 (UTC)

...
-- Detecting CXX compile features - done
CMake Error at CMakeLists.txt:3 (cmake_minimum_required):
  Compatibility with CMake < 3.5 has been removed from CMake.

  Update the VERSION argument <min> value.  Or, use the <min>...<max> syntax
  to tell CMake that the project requires at least <min> but has been updated
  to work with policies introduced by <max> or earlier.

  Or, add -DCMAKE_POLICY_VERSION_MINIMUM=3.5 to try configuring anyway.


-- Configuring incomplete, errors occurred!
==> ERROR: A failure occurred in build().
    Aborting...

D3SOX commented on 2025-03-07 08:00 (UTC)

Package now builds again

chovy commented on 2023-11-08 08:35 (UTC)

/home/ettinger/.cache/yay/pdf2htmlex/src/pdf2htmlEX-0.18.8.rc1/fontforge/po/fr.po:307: 'msgstr' is not a valid C format string, unlike 'msgid'. Reason: In the directive number 2, the argument size specifier is invalid. /home/ettinger/.cache/yay/pdf2htmlex/src/pdf2htmlEX-0.18.8.rc1/fontforge/po/fr.po:327: 'msgstr' is not a valid C format string, unlike 'msgid'. Reason: In the directive number 2, the argument size specifier is invalid. /home/ettinger/.cache/yay/pdf2htmlex/src/pdf2htmlEX-0.18.8.rc1/fontforge/po/fr.po:501: 'msgstr' is not a valid C format string, unlike 'msgid'. Reason: In the directive number 2, the argument size specifier is invalid. /home/ettinger/.cache/yay/pdf2htmlex/src/pdf2htmlEX-0.18.8.rc1/fontforge/po/fr.po:1249: 'msgstr' is not a valid C format string, unlike 'msgid'. Reason: In the directive number 2, the argument size specifier is invalid. /home/ettinger/.cache/yay/pdf2htmlex/src/pdf2htmlEX-0.18.8.rc1/fontforge/po/fr.po:4473: 'msgstr' is not a valid C format string, unlike 'msgid'. Reason: In the directive number 2, the argument size specifier is invalid. /home/ettinger/.cache/yay/pdf2htmlex/src/pdf2htmlEX-0.18.8.rc1/fontforge/po/fr.po:4481: 'msgstr' is not a valid C format string, unlike 'msgid'. Reason: In the directive number 2, the argument size specifier is invalid. /home/ettinger/.cache/yay/pdf2htmlex/src/pdf2htmlEX-0.18.8.rc1/fontforge/po/fr.po:4534: 'msgstr' is not a valid C format string, unlike 'msgid'. Reason: In the directive number 2, the argument size specifier is invalid. /home/ettinger/.cache/yay/pdf2htmlex/src/pdf2htmlEX-0.18.8.rc1/fontforge/po/fr.po:4575: 'msgstr' is not a valid C format string, unlike 'msgid'. Reason: In the directive number 2, the argument size specifier is invalid. /home/ettinger/.cache/yay/pdf2htmlex/src/pdf2htmlEX-0.18.8.rc1/fontforge/po/fr.po:8029: 'msgstr' is not a valid C format string, unlike 'msgid'. Reason: In the directive number 2, the argument size specifier is invalid. /home/ettinger/.cache/yay/pdf2htmlex/src/pdf2htmlEX-0.18.8.rc1/fontforge/po/fr.po:10439: 'msgstr' is not a valid C format string, unlike 'msgid'. Reason: In the directive number 4, the argument size specifier is invalid. /home/ettinger/.cache/yay/pdf2htmlex/src/pdf2htmlEX-0.18.8.rc1/fontforge/po/fr.po:11968: 'msgstr' is not a valid C format string, unlike 'msgid'. Reason: In the directive number 3, the argument size specifier is invalid. /home/ettinger/.cache/yay/pdf2htmlex/src/pdf2htmlEX-0.18.8.rc1/fontforge/po/fr.po:22426: 'msgstr' is not a valid C format string, unlike 'msgid'. Reason: In the directive number 2, the argument size specifier is invalid. /usr/bin/msgfmt: found 13 fatal errors make[2]: *** [po/CMakeFiles/pofiles.dir/build.make:110: po/fr.mo] Error 1 make[2]: *** Deleting file 'po/fr.mo' make[1]: *** [CMakeFiles/Makefile2:1345: po/CMakeFiles/pofiles.dir/all] Error 2 make: *** [Makefile:166: all] Error 2 ==> ERROR: A failure occurred in build(). Aborting... -> error making: pdf2htmlex-exit status 4 -> Failed to install the following packages. Manual intervention is required: pdf2htmlex - exit status 4

chillenb commented on 2021-08-19 23:55 (UTC)

Since this package no longer builds, I made a new package, pdf2htmlex-appimage, which installs the appimage available at the upstream repository. This appimage was compiled on Ubuntu, but it seems to work fine.

fbrennan commented on 2021-06-13 06:39 (UTC) (edited on 2021-06-13 08:39 (UTC) by fbrennan)

AppImage

I have bad news. This no longer compiles, because poppler won't compile. Because it's an old version, and glib has changed. glib2, an unenumerated dependency, can no longer be relied upon, due to errors such as these:

[ 91%] Building CXX object glib/CMakeFiles/poppler-glib.dir/poppler-layer.cc.o
In file included from /usr/include/glib-2.0/glib/gthread.h:32,
                 from /usr/include/glib-2.0/glib/gasyncqueue.h:32,
                 from /usr/include/glib-2.0/glib.h:32,
                 from /usr/include/glib-2.0/gobject/gbinding.h:28,
                 from /usr/include/glib-2.0/glib-object.h:22,
                 from /home/fred/Workspace/aur/pdf2htmlex/src/pdf2htmlEX-0.18.8.rc1/poppler/glib/poppler.h:22,
                 from /home/fred/Workspace/aur/pdf2htmlex/src/pdf2htmlEX-0.18.8.rc1/poppler/glib/poppler-page.cc:33:
/home/fred/Workspace/aur/pdf2htmlex/src/pdf2htmlEX-0.18.8.rc1/poppler/glib/poppler-page.cc: In function ‘GType poppler_rectangle_get_type()’:
/home/fred/Workspace/aur/pdf2htmlex/src/pdf2htmlEX-0.18.8.rc1/poppler/glib/poppler-private.h:158:13: error: argument 2 of ‘__atomic_load’ must not be a pointer to a ‘volatile’ type
  158 |         if (g_once_init_enter (&g_define_type_id__volatile)) {                        \
      |             ^~~~~~~~~~~~~~~~~

You must compile glib itself, checkout v2.41.5, by pulling https://gitlab.gnome.org/GNOME/glib.git, applying this:

diff --git a/m4macros/glib-gettext.m4 b/m4macros/glib-gettext.m4
index 5217fd843..9596cb28a 100644
--- a/m4macros/glib-gettext.m4
+++ b/m4macros/glib-gettext.m4
@@ -36,8 +36,6 @@ dnl We go to great lengths to make sure that aclocal won't
 dnl try to pull in the installed version of these macros
 dnl when running aclocal in the glib directory.
 dnl
-m4_copy([AC_DEFUN],[glib_DEFUN])
-m4_copy([AC_REQUIRE],[glib_REQUIRE])
 dnl
 dnl At the end, if we're not within glib, we'll define the public
 dnl definitions in terms of our private definitions.

And running e.g. autoreconf, ./configure --prefix=/opt/glib2.41, make -j9 CFLAGS="-Wno-error=format-nonliteral", make install.

Then you must apply to this repository:

diff --git a/PKGBUILD b/PKGBUILD
index 1319cce..26910fb 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -32,7 +32,7 @@ sha256sums=('fba230364537782cc5d43b08d693ef69c36586286349683c7b127156a8ef9b5c'
             'a1d320f155eaffe78e4af88e288ed5e8217e29031acf6698d14623c59a7c5641'
             '28d81fc2344dc3a612886e2e159d8bdd0da8de62b28cb2ef16a45b1ccf364af4'
 # above: 50.patch -- below: popplerFlags
-            '55558182468c5b96a0c0ed0c3ce7d936c906d1cf3ec232d0a37735cdd8190a10'
+            'f8bca6e0a6dba7d8382500eb91e160ebfade475ea3394bc446f01e2158b3b5b2'
             '35e431f050037d653a61654f9d9d3a13fe790178f4803ce045964fed4d9b7228')

 prepare() {
diff --git a/popplerFlags b/popplerFlags
index cf8d4a3..b9d1f26 100644
--- a/popplerFlags
+++ b/popplerFlags
@@ -25,4 +25,5 @@
 -DWITH_PNG=ON                             \
 -DWITH_TIFF=OFF                           \
 -DWITH_NSS3=OFF                           \
+-DGLIB2_INCLUDE_DIRS='/opt/glib2.41/include/glib-2.0' \
 -DWITH_Cairo=ON

The number of hacks becoming required to build this are in my opinion a bit ridiculous, so I packed mine as an AppImage. I never want to need to compile this again. If build isn't working for you and you're too busy to fix it, consider https://github.com/ctrlcctrlv/pdf2htmlEX.AppImage.

<deleted-account> commented on 2021-05-26 13:55 (UTC)

Hello, I'm new to arch (manjaro distro) and I have to use pdf2htmlEx. The download through pamac went well however when I try to use : pdf2htmlEX file.pdf

I get that: Preprocessing: 210/210 /usr/include/c++/10.2.0/bits/stl_vector.h:1123: std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::front() [with _Tp = char; _Alloc = std::allocator<char>; std::vector<_Tp, _Alloc>::reference = char&]: Assertion '__builtin_expect(!this->empty(), true)' failed. Aborted (core dumped)

I come from ubuntu where it worked fine but I didn't find a solution to make pdf2htmlEX works on manjaro (I use it on several pdf but it's the same answer).

Do you know what could I do to avoid this error?

Sorry for my bad english, it's not my native language. Thanks in advance.

scrouthtv commented on 2021-01-13 07:42 (UTC)

Update to 0.18.8.rc1