Package Details: pdf2htmlex 0.18.8.rc1-1

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: None
Last Packager: catHeadCoffee
Votes: 13
Popularity: 0.000000
First Submitted: 2015-08-09 18:45 (UTC)
Last Updated: 2022-06-07 16:41 (UTC)

Latest Comments

1 2 Next › Last »

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

homk commented on 2020-12-26 13:07 (UTC) (edited on 2020-12-26 13:10 (UTC) by homk)

pdf2htmlEX-continuous.tar.gz fails on validity check.

pdf2htmlEX-git doesn't build.

docker image 'pdf2htmlex/pdf2htmlex' has no manifest.

Hm.

dreieck commented on 2020-06-13 10:54 (UTC)

Fails to configure for me:

==> Starting build()...
-- The C compiler identification is GNU 10.1.0
-- The CXX compiler identification is GNU 10.1.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc - works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ - works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found PkgConfig: /usr/bin/pkg-config (found version "1.6.3") 
-- Checking for module 'poppler>=0.25.0'
--   Found poppler, version 0.88.0
-- Checking for module 'cairo>=1.10.0'
--   Found cairo, version 1.17.3
Trying to locate cairo-svg...
-- Found Freetype: /usr/lib/libfreetype.so (found version "2.10.2") 
-- Checking for module 'libfontforge>=2.0.0'
--   Package 'libfontforge', required by 'virtual:world', not found
CMake Error at /usr/share/cmake-3.17/Modules/FindPkgConfig.cmake:467 (message):
  A required package was not found
Call Stack (most recent call first):
  /usr/share/cmake-3.17/Modules/FindPkgConfig.cmake:647 (_pkg_check_modules_internal)
  CMakeLists.txt:57 (pkg_check_modules)


-- Configuring incomplete, errors occurred!
See also "/tmp/yaourt-tmp-felics/aur-pdf2htmlex/src/pdf2htmlEX-0.14.6/CMakeFiles/CMakeOutput.log".
==> ERROR: A failure occurred in build().
    Aborting...

macie commented on 2019-12-28 21:00 (UTC)

There is newer, maintained fork: https://github.com/pdf2htmlEX/pdf2htmlEX But it aimed at Ubuntu, so it will be probably slightly out of date (dependent packages are slower adopted in Ubuntu than in Arch).

xanc commented on 2018-03-24 22:31 (UTC)

airoFontEngine.cc:681:17: error: ‘void Object::free()’ is private within this context charProc.free(); ^ In file included from /usr/include/poppler/GfxFont.h:41:0, from /home/xan/aur/pdf2htmlex/pdf2htmlex/src/pdf2htmlEX-0.14.6/3rdparty/poppler/git/CairoFontEngine.h:40, from /home/xan/aur/pdf2htmlex/pdf2htmlex/src/pdf2htmlEX-0.14.6/3rdparty/poppler/git/CairoFontEngine.cc:39: /usr/include/poppler/Object.h:292:8: note: declared private here void free(); ^~~~ make[2]: [CMakeFiles/pdf2htmlEX.dir/build.make:63: CMakeFiles/pdf2htmlEX.dir/3rdparty/poppler/git/CairoFontEngine.cc.o] Error 1 make[1]: [CMakeFiles/Makefile2:68: CMakeFiles/pdf2htmlEX.dir/all] Error 2 make: *** [Makefile:141: all] Error 2 ==> ERROR: S'ha produït un error a build(). Cancel·lant...