I installed pdf2htmlEX on widnows 7 from
http://soft.rubypdf.com/software/pdf2htmlex-windows-version to try it. (I used the file pdf2htmlEX-win32-0.14.6-upx-with-poppler-data.zip)
The program works ok one some pdf files, but on this specific pdf file, I get many errors and no HTML is produced. The pdf file was generated using pdflatex.
>pdf2htmlEX -v
pdf2htmlEX version 0.14.6
Libraries:
poppler 0.33.0
libfontforge 20150621
cairo 1.12.18
Supported image format: png jpg svg
The pdf file is valid, as I can view it ok with pdf reader. It is a large file (431 pages).
I run this program with different options and it fails all the time on this pdf file. Here is one example of command I used with the error messages produced (copied from the DOS terminal on windows 7)
>pdf2htmlEX --data-dir G:\nabbasi\data\CDROM\pdf2htmlEX\data
--dest-dir HTML --process-outline 1 --fallback 1 --zoom 1 index.pdf
Preprocessing: 431/431
TODO: actionGoToR is not implemented.
Font file has bad glyph count field. maxp says: 0 sizeof(loca)=>11
Font file has bad glyph count field. maxp says: 0 sizeof(loca)=>14
Internal Error: File Offset wrong for ttf table (name-data), -1 expected 174
Font file has bad glyph count field. maxp says: 0 sizeof(loca)=>6
Internal Error: File Offset wrong for ttf table (name-data), -1 expected 150
Internal Error: File Offset wrong for ttf table (name-data), -1 expected 174
Font file has bad glyph count field. maxp says: 0 sizeof(loca)=>29
Internal Error: File Offset wrong for ttf table (name-data), -1 expected 150
Internal Error: File Offset wrong for ttf table (name-data), -1 expected 174
Cannot save font to C:\Users\me\AppData\Local\Temp//pdf2htmlEX-a03484/__tmp_font1.ttf
I am on windows 7, 64 bit. Any idea what the above errors mean? and what could be the issue?
ps. I tried to install pdf2htmlEX on linux, but the installation is too complicated there. I kept getting poppler errors and that is why I am trying this on windows, since there is a pre-build binary for windows.
thanks,
--Nasser