Package Details: pdf2htmlex-git 1:1742.f12fc15-3

Git Clone URL: https://aur.archlinux.org/pdf2htmlex-git.git (read-only)
Package Base: pdf2htmlex-git
Description: Convert PDF to HTML without losing format. Text is preserved as much as possible.
Upstream URL: https://github.com/coolwanglu/pdf2htmlEX
Keywords: multimedia
Licenses: custom, GPL3
Conflicts: pdf2htmlex
Provides: pdf2htmlex
Replaces: pdf2htmlex
Submitter: roentgen
Maintainer: migrev
Last Packager: migrev
Votes: 42
Popularity: 0.004252
First Submitted: 2012-09-01 11:39
Last Updated: 2018-05-23 13:58

Dependencies (5)

Required by (0)

Sources (3)

Latest Comments

1 2 3 Next › Last »

migrev commented on 2019-02-05 16:30

Until this package is updated in the upstream is mostly impossible to compile with current arch libraries. Current poppler, among others, breaks it. One of the forks is having some recent activity, and they have issues open regarding poppler, but no fixes yet. Will have to wait.

xanc commented on 2018-10-16 09:16

Adding -DENABLE_SVG=OFF in MAKEPKG file in build() function is the best option after poppler needs to be updated. Thanks @cadilhac

cadilhac commented on 2018-09-28 19:49

Solving the compilation problems is not hard: - Replace the poppler files with more recent versions, or disable their use by using -DENABLE_SVG=OFF with cmake. The small changes from the original files are basically that setMimeData is virtual. - Fortforge crash: see https://github.com/akhuettel/pdf2htmlEX/commit/46160f0c83b02a6fd7f23c40b7fab612f913f8c4 ; that works.

The problem is, even after that, pdf2htmlEX produces a beautiful HTML but without text. Debian's version (linked to poppler68) works like a charm, so I'm guessing it may be a bug of poppler… Wait and see?

EDIT: Tried to compile it against poppler-git (poppler80), not a poppler bug it seems. Same behavior.

redfast00 commented on 2018-09-21 09:57

Install doesn't seem to work anymore:

aurman -S pdf2htmlex-git
~~ initializing aurman...
~~ calculating solutions...

:: The following 1 package(s) are getting installed:
   aur/pdf2htmlex-git  /  ->  1:1742.f12fc15-3

?? Do you want to continue? Y/n: 
~~ looking for new pkgbuilds and fetching them...
==> Making package: pdf2htmlex-git 1:1742.f12fc15-3 (Fri 21 Sep 2018 11:46:35 AM CEST)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Updating pdf2htmlEX git repo...
Fetching origin
  -> Found 735.patch
  -> Found override.patch
==> Validating source files with md5sums...
    pdf2htmlEX ... Skipped
    735.patch ... Passed
    override.patch ... Passed
==> Extracting sources...
  -> Creating working copy of pdf2htmlEX git repo...
Switched to a new branch 'makepkg'
==> Starting prepare()...
patching file 3rdparty/poppler/git/CairoFontEngine.cc
patching file 3rdparty/poppler/git/CairoFontEngine.h
patching file 3rdparty/poppler/git/CairoOutputDev.cc
patching file 3rdparty/poppler/git/CairoOutputDev.h
patching file 3rdparty/poppler/git/CairoRescaleBox.cc
patching file 3rdparty/poppler/git/CairoRescaleBox.h
patching file CMakeLists.txt
patching file src/BackgroundRenderer/CairoBackgroundRenderer.cc
patching file src/BackgroundRenderer/CairoBackgroundRenderer.h
patching file src/HTMLRenderer/font.cc
patching file CMakeLists.txt
==> Starting pkgver()...
==> Removing existing $pkgdir/ directory...
==> Starting build()...
Trying to locate cairo-svg...
-- Configuring done
-- Generating done
-- Build files have been written to: /home/rdf/.cache/aurman/pdf2htmlex-git/src/pdf2htmlEX
Scanning dependencies of target pdf2htmlEX
[  2%] Building CXX object CMakeFiles/pdf2htmlEX.dir/3rdparty/poppler/git/CairoFontEngine.cc.o
[  5%] Building CXX object CMakeFiles/pdf2htmlEX.dir/3rdparty/poppler/git/CairoRescaleBox.cc.o
[  8%] Building CXX object CMakeFiles/pdf2htmlEX.dir/3rdparty/poppler/git/CairoOutputDev.cc.o
/home/jdv/.cache/aurman/pdf2htmlex-git/src/pdf2htmlEX/3rdparty/poppler/git/CairoOutputDev.cc: In member function ‘virtual GBool CairoOutputDev::tilingPatternFill(GfxState*, Gfx*, Catalog*, Object*, double*, int, int, Dict*, double*, double*, int, int, int, int, double, double)’:
/home/rdf/.cache/aurman/pdf2htmlex-git/src/pdf2htmlEX/3rdparty/poppler/git/CairoOutputDev.cc:957:76: error: no matching function for call to ‘Gfx::Gfx(PDFDoc*&, CairoOutputDev*, Dict*&, PDFRectangle*, NULL, NULL, NULL, XRef*)’
   gfx = new Gfx(doc, this, resDict, &box, NULL, NULL, NULL, gfxA->getXRef());
                                                                            ^
In file included from /home/rdf/.cache/aurman/pdf2htmlex-git/src/pdf2htmlEX/3rdparty/poppler/git/CairoOutputDev.cc:54:
/usr/include/poppler/Gfx.h:161:3: note: candidate: ‘Gfx::Gfx(PDFDoc*, OutputDev*, Dict*, PDFRectangle*, PDFRectangle*, GBool (*)(void*), void*, Gfx*)’
   Gfx(PDFDoc *docA, OutputDev *outA, Dict *resDict,
   ^~~
/usr/include/poppler/Gfx.h:161:3: note:   no known conversion for argument 8 from ‘XRef*’ to ‘Gfx*’
/usr/include/poppler/Gfx.h:154:3: note: candidate: ‘Gfx::Gfx(PDFDoc*, OutputDev*, int, Dict*, double, double, PDFRectangle*, PDFRectangle*, int, GBool (*)(void*), void*, XRef*)’
   Gfx(PDFDoc *docA, OutputDev *outA, int pageNum, Dict *resDict,
   ^~~
/usr/include/poppler/Gfx.h:154:3: note:   candidate expects 12 arguments, 8 provided
make[2]: *** [CMakeFiles/pdf2htmlEX.dir/build.make:89: CMakeFiles/pdf2htmlEX.dir/3rdparty/poppler/git/CairoOutputDev.cc.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:361: CMakeFiles/pdf2htmlEX.dir/all] Error 2
make: *** [Makefile:141: all] Error 2
==> ERROR: A failure occurred in build().
    Aborting...
2018-09-21 11:46:37,230 - wrappers - makepkg - ERROR - makepkg query ['makepkg', '-cf', '--noconfirm'] failed in directory /home/rdf/.cache/aurman/pdf2htmlex-git

Is this a problem in poppler or in pdf2htmllex?

skakri commented on 2018-05-25 08:12

Since latest update pdf2htmlex segfaults via fontforge call

remote // heatbox ~ % gdb pdf2htmlEX
GNU gdb (GDB) 8.1
Copyright (C) 2018 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-pc-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from pdf2htmlEX...(no debugging symbols found)...done.
(gdb) run Downloads/Uzvarētāji\ Dienvidu\ sp_sp_.pdf
Starting program: /usr/bin/pdf2htmlEX Downloads/Uzvarētāji\ Dienvidu\ sp_sp_.pdf
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib/libthread_db.so.1".

Program received signal SIGSEGV, Segmentation fault.
0x00007ffff6e447df in ?? () from /usr/lib/libfontforge.so.2
(gdb) back
#0  0x00007ffff6e447df in  () at /usr/lib/libfontforge.so.2
#1  0x00007ffff6e43cb3 in  () at /usr/lib/libfontforge.so.2
#2  0x00005555555a9941 in ffw_init ()
#3  0x000055555559856e in pdf2htmlEX::HTMLRenderer::HTMLRenderer(pdf2htmlEX::Param const&) ()
#4  0x000055555557b308 in main ()

migrev commented on 2018-02-28 12:22

@greencopper: Fixed and compiles again.

greencopper commented on 2018-02-17 18:45

It fails to compile.

Scanning dependencies of target pdf2htmlEX
[  2%] Building CXX object CMakeFiles/pdf2htmlEX.dir/3rdparty/poppler/git/CairoFontEngine.cc.o
[  5%] Building CXX object CMakeFiles/pdf2htmlEX.dir/3rdparty/poppler/git/CairoRescaleBox.cc.o
[  8%] Building CXX object CMakeFiles/pdf2htmlEX.dir/3rdparty/poppler/git/CairoOutputDev.cc.o
/home/foo/rdata/udata/AUR/pdf2htmlex-git/src/pdf2htmlEX/3rdparty/poppler/git/CairoOutputDev.cc: In constructor ‘CairoOutputDev::CairoOutputDev()’:
/home/foo/rdata/udata/AUR/pdf2htmlex-git/src/pdf2htmlEX/3rdparty/poppler/git/CairoOutputDev.cc:172:33: error: ‘class GlobalParams’ has no member named ‘getStrokeAdjust’
   stroke_adjust = globalParams->getStrokeAdjust();
                                 ^~~~~~~~~~~~~~~
make[2]: *** [CMakeFiles/pdf2htmlEX.dir/build.make:111: CMakeFiles/pdf2htmlEX.dir/3rdparty/poppler/git/CairoOutputDev.cc.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:356: CMakeFiles/pdf2htmlEX.dir/all] Error 2
make: *** [Makefile:141: all] Error 2
==> ERROR: A failure occurred in build().
    Aborting...

leha2000 commented on 2015-04-29 17:29

Add -DENABLE_SVG=ON option please to cmake section :)

roentgen commented on 2015-04-05 08:49

albion,
According to https://github.com/coolwanglu/pdf2htmlEX/issues/492 it works by using the 'incoming' branch.

So please modify the source line in the PKGBUILD like bellow:

source=('git://github.com/coolwanglu/pdf2htmlEX.git#branch=incoming')

cschmidpeter commented on 2015-04-04 09:16

It doesn't compile for me. Does anybody know what to do? (see output below)

==> Making package: pdf2htmlex-git 1:1173.a124926-1 (Sat 4 Apr 11:05:11 CEST 2015)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
-> Cloning pdf2htmlEX git repo...
Cloning into bare repository '/tmp/yaourt-tmp-vbm/aur-pdf2htmlex-git/pdf2htmlEX'...
remote: Counting objects: 11418, done.
remote: Total 11418 (delta 0), reused 0 (delta 0), pack-reused 11418
Receiving objects: 100% (11418/11418), 131.24 MiB | 3.59 MiB/s, done.
Resolving deltas: 100% (7929/7929), done.
Checking connectivity... done.
==> Validating source files with md5sums...
pdf2htmlEX ... Skipped
==> Extracting sources...
-> Creating working copy of pdf2htmlEX git repo...
Cloning into 'pdf2htmlEX'...
done.
==> Starting pkgver()...
==> Updated version: pdf2htmlex-git 1:1608.5e11cc4-1
==> Starting build()...
-- The C compiler identification is GNU 4.9.2
-- The CXX compiler identification is GNU 4.9.2
-- 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 "0.28")
-- checking for module 'poppler>=0.25.0'
-- found poppler, version 0.31.0
-- checking for module 'libfontforge>=2.0.0'
-- found libfontforge, version 2.0.20140101
-- Performing Test CXX0X_SUPPORT
-- Performing Test CXX0X_SUPPORT - Success
-- Configuring done
-- Generating done
-- Build files have been written to: /tmp/yaourt-tmp-vbm/aur-pdf2htmlex-git/src/pdf2htmlEX
Scanning dependencies of target pdf2htmlEX
[ 3%] Building CXX object CMakeFiles/pdf2htmlEX.dir/src/pdf2htmlEX.cc.o
[ 6%] Building CXX object CMakeFiles/pdf2htmlEX.dir/src/HTMLRenderer/draw.cc.o
[ 9%] Building CXX object CMakeFiles/pdf2htmlEX.dir/src/HTMLRenderer/general.cc.o
[ 12%] Building CXX object CMakeFiles/pdf2htmlEX.dir/src/HTMLRenderer/image.cc.o
[ 15%] Building CXX object CMakeFiles/pdf2htmlEX.dir/src/HTMLRenderer/font.cc.o
/tmp/yaourt-tmp-vbm/aur-pdf2htmlex-git/src/pdf2htmlEX/src/HTMLRenderer/font.cc: In member function ‘const pdf2htmlEX::FontInfo* pdf2htmlEX::HTMLRenderer::install_font(GfxFont*)’:
/tmp/yaourt-tmp-vbm/aur-pdf2htmlex-git/src/pdf2htmlEX/src/HTMLRenderer/font.cc:890:55: warning: converting ‘false’ to pointer type for argument 2 of ‘GfxFontLoc* GfxFont::locateFont(XRef*, PSOutputDev*)’ [-Wconversion-null]
if(auto * font_loc = font->locateFont(xref, gFalse))
^
/tmp/yaourt-tmp-vbm/aur-pdf2htmlex-git/src/pdf2htmlEX/src/HTMLRenderer/font.cc: In member function ‘void pdf2htmlEX::HTMLRenderer::install_external_font(GfxFont*, pdf2htmlEX::FontInfo&)’:
/tmp/yaourt-tmp-vbm/aur-pdf2htmlex-git/src/pdf2htmlEX/src/HTMLRenderer/font.cc:945:62: warning: converting ‘false’ to pointer type for argument 2 of ‘GfxFontLoc* GfxFont::locateFont(XRef*, PSOutputDev*)’ [-Wconversion-null]
GfxFontLoc * localfontloc = font->locateFont(xref, gFalse);
^
[ 18%] Building CXX object CMakeFiles/pdf2htmlEX.dir/src/HTMLRenderer/link.cc.o
[ 21%] Building CXX object CMakeFiles/pdf2htmlEX.dir/src/HTMLRenderer/outline.cc.o
[ 25%] Building CXX object CMakeFiles/pdf2htmlEX.dir/src/HTMLRenderer/state.cc.o
[ 28%] Building CXX object CMakeFiles/pdf2htmlEX.dir/src/HTMLRenderer/text.cc.o
[ 31%] Building CXX object CMakeFiles/pdf2htmlEX.dir/src/BackgroundRenderer/BackgroundRenderer.cc.o
[ 34%] Building CXX object CMakeFiles/pdf2htmlEX.dir/src/BackgroundRenderer/SplashBackgroundRenderer.cc.o
/tmp/yaourt-tmp-vbm/aur-pdf2htmlex-git/src/pdf2htmlEX/src/BackgroundRenderer/SplashBackgroundRenderer.cc: In constructor ‘pdf2htmlEX::SplashBackgroundRenderer::SplashBackgroundRenderer(const string&, pdf2htmlEX::HTMLRenderer*, const pdf2htmlEX::Param&)’:
/tmp/yaourt-tmp-vbm/aur-pdf2htmlex-git/src/pdf2htmlEX/src/BackgroundRenderer/SplashBackgroundRenderer.cc:35:23: error: no matching function for call to ‘SplashOutputDev::SplashOutputDev(SplashColorMode, int, bool, SplashColorPtr, bool, bool)’
, format(imgFormat)
^
/tmp/yaourt-tmp-vbm/aur-pdf2htmlex-git/src/pdf2htmlEX/src/BackgroundRenderer/SplashBackgroundRenderer.cc:35:23: note: candidate is:
In file included from /tmp/yaourt-tmp-vbm/aur-pdf2htmlex-git/src/pdf2htmlEX/src/BackgroundRenderer/SplashBackgroundRenderer.h:15:0,
from /tmp/yaourt-tmp-vbm/aur-pdf2htmlex-git/src/pdf2htmlEX/src/BackgroundRenderer/SplashBackgroundRenderer.cc:20:
/usr/include/poppler/SplashOutputDev.h:171:3: note: SplashOutputDev::SplashOutputDev(SplashColorMode, int, GBool, SplashColorPtr, GBool, SplashThinLineMode, GBool)
SplashOutputDev(SplashColorMode colorModeA, int bitmapRowPadA,
^
/usr/include/poppler/SplashOutputDev.h:171:3: note: no known conversion for argument 6 from ‘bool’ to ‘SplashThinLineMode’
CMakeFiles/pdf2htmlEX.dir/build.make:284: recipe for target 'CMakeFiles/pdf2htmlEX.dir/src/BackgroundRenderer/SplashBackgroundRenderer.cc.o' failed
make[2]: *** [CMakeFiles/pdf2htmlEX.dir/src/BackgroundRenderer/SplashBackgroundRenderer.cc.o] Error 1
CMakeFiles/Makefile2:91: recipe for target 'CMakeFiles/pdf2htmlEX.dir/all' failed
make[1]: *** [CMakeFiles/pdf2htmlEX.dir/all] Error 2
Makefile:126: recipe for target 'all' failed
make: *** [all] Error 2
==> ERROR: A failure occurred in build().
Aborting...
==> ERROR: Makepkg was unable to build pdf2htmlex-git.
==> Restart building pdf2htmlex-git ? [y/N]
==> ---------------------------------------
==>