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.613404
First Submitted: 2012-09-01 11:39
Last Updated: 2018-05-23 13:58

Dependencies (5)

Required by (0)

Sources (3)

Latest Comments

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]
==> ---------------------------------------
==>

roentgen commented on 2015-03-28 19:04

alanoth, it seems that's not so easy.

Please look at https://unix.stackexchange.com/questions/154919/how-to-modify-a-pkgbuild-which-uses-git-sources-to-pull-only-a-shallow-clone

and the linked bug report https://bugs.archlinux.org/task/23065

Anonymous comment on 2015-03-27 02:32

Would it be possible to install the package with a shallow clone? (using '--depth 1')

Anonymous comment on 2015-03-27 02:30

Please use "git clone --depth 1". It saves a lot of bandwidth & time as the repository is very large.

Anonymous comment on 2013-04-14 08:30

Thanks

roentgen commented on 2013-04-14 07:51

Updated.

Anonymous comment on 2013-04-13 07:48

Could you update the PKGBUILD with the new CVS PKGBUILD features:
https://wiki.archlinux.org/index.php/Arch_CVS_%26_SVN_PKGBUILD_guidelines#Git
https://wiki.archlinux.org/index.php/Arch_CVS_%26_SVN_PKGBUILD_guidelines#A_sample_Git_PKGBUILD
Thanks in advance.

roentgen commented on 2013-01-06 15:21

Added ttfautohint as optional dependency.
Run pdf2htmlEX with --external-hint-tool=ttfautohint to enable it.

roentgen commented on 2012-09-22 20:40

> please add cmake to makedepends.

Right... done.

rich_o commented on 2012-09-22 19:52

please add cmake to makedepends.

Anonymous comment on 2012-09-13 14:29

Can you please file a bug on github.com/coolwanglu/pdf2htmlEX , and discuss there?
Thanks!

Anonymous comment on 2012-09-13 14:26

Internal Error: Attempt to output 65545 into a 16-bit field. It will be truncated and the file may not be useful.

roentgen commented on 2012-09-12 18:12

Updated according to changes in git.
Boost is no longer required.

Anonymous comment on 2012-09-07 06:01

Please check the version of popppler.
It should be >= 0.20.2

Probably should add this dependency in the AUR Package?

Anonymous comment on 2012-09-07 03:36

Building error:

df2htmlEX-build
Scanning dependencies of target pdf2htmlEX
[ 9%] Building CXX object CMakeFiles/pdf2htmlEX.dir/src/pdf2htmlEX.cc.o
In file included from /tmp/yaourt-tmp-qt/aur-pdf2htmlex-git/src/pdf2htmlEX-build/src/HTMLRenderer.h:21:0,
from /tmp/yaourt-tmp-qt/aur-pdf2htmlex-git/src/pdf2htmlEX-build/src/pdf2htmlEX.cc:25:
/usr/include/poppler/GfxState.h: In member function ‘virtual void GfxColorSpace::getGrayLine(Guchar*, Guchar*, int)’:
/usr/include/poppler/GfxState.h:205:142: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
/usr/include/poppler/GfxState.h: In member function ‘virtual void GfxColorSpace::getRGBLine(Guchar*, unsigned int*, int)’:
/usr/include/poppler/GfxState.h:206:162: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
/usr/include/poppler/GfxState.h: In member function ‘virtual void GfxColorSpace::getRGBLine(Guchar*, Guchar*, int)’:
/usr/include/poppler/GfxState.h:207:158: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
/usr/include/poppler/GfxState.h: In member function ‘virtual void GfxColorSpace::getRGBXLine(Guchar*, Guchar*, int)’:
/usr/include/poppler/GfxState.h:208:143: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
In file included from /tmp/yaourt-tmp-qt/aur-pdf2htmlex-git/src/pdf2htmlEX-build/src/pdf2htmlEX.cc:25:0:
/tmp/yaourt-tmp-xx/aur-pdf2htmlex-git/src/pdf2htmlEX-build/src/HTMLRenderer.h: At global scope:
/tmp/yaourt-tmp-xx/aur-pdf2htmlex-git/src/pdf2htmlEX-build/src/HTMLRenderer.h:137:48: error: ‘GfxFontLoc’ has not been declared
/tmp/yaourt-tmp-xx/aur-pdf2htmlex-git/src/pdf2htmlEX-build/src/pdf2htmlEX.cc: In function ‘int main(int, char**)’:
/tmp/yaourt-tmp-xx/aur-pdf2htmlex-git/src/pdf2htmlEX-build/src/pdf2htmlEX.cc:167:15: error: ‘errNotAllowed’ was not declared in this scope
make[2]: *** [CMakeFiles/pdf2htmlEX.dir/src/pdf2htmlEX.cc.o] Error 1
make[1]: *** [CMakeFiles/pdf2htmlEX.dir/all] Error 2
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]
==> ---------------------------------------
==>

roentgen commented on 2012-09-05 17:35

fontforge-git is no longer needed.
I've switched to the devv branch which makes things working with fontforge from [extra].

roentgen commented on 2012-09-02 05:21

@ly50247 There are some issues with the stable fontforge. The dev expplains a bit about it here: https://bbs.archlinux.org/viewtopic.php?pid=1154758#p1154758

I've put boost in make depends. I wasn't sure about it.

ly50247 commented on 2012-09-02 04:54

Fontforge is in extra repository, why depend fontforge-git?
And boost should be in makedepends.

roentgen commented on 2012-09-01 17:08

Should be better now. Thanks for the heads up.

roentgen commented on 2012-09-01 16:16

Bah... the man path should've been obvious.

Anonymous comment on 2012-09-01 14:47

Some things need to be fixed:

% namcap pdf2htmlex-git-20120901-1-x86_64.pkg.tar.xz
pdf2htmlex-git W: File (usr/man/) exists in a non-standard directory.
pdf2htmlex-git W: File (usr/man/man1/) exists in a non-standard directory.
pdf2htmlex-git W: File (usr/man/man1/pdf2htmlEX.1.gz) exists in a non-standard directory.
pdf2htmlex-git E: GPLv2 is not a common license (it's not in /usr/share/licenses/common/)
pdf2htmlex-git E: GPLv3 is not a common license (it's not in /usr/share/licenses/common/)
pdf2htmlex-git E: Non-FHS man page (usr/man/man1/pdf2htmlEX.1.gz) found. Use /usr/share/man instead
pdf2htmlex-git E: Dependency boost-libs detected and not included (libraries ['usr/lib/libboost_filesystem.so.1.50.0', 'usr/lib/libboost_program_options.so.1.50.0', 'usr/lib/libboost_system.so.1.50.0'] needed in files ['usr/bin/pdf2htmlEX'])
pdf2htmlex-git W: Dependency included and not needed ('fontforge-git')