Internal Error: File Offset wrong for ttf table (name-data), 0.14.6 on windows

316 views
Skip to first unread message

Nasser M. Abbasi

unread,
Aug 26, 2015, 11:12:20 PM8/26/15
to pdf2htmlEX
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
Copyright 2012-2015 Lu Wang <coolw...@gmail.com> and other contributors
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

Josel...@hotmail.com

unread,
Jan 25, 2018, 10:59:28 AM1/25/18
to pdf2htmlEX
Did you find any solution to this issue? I am facing the same error with Windows 10 and same version as you:

pdf2htmlEX version 0.14.6

Libraries:
poppler 0.33.0
libfontforge 20150621
cairo 1.12.18
Supported image format: png jpg svg

This is the error:
Internal Error: File Offset wrong for ttf table (name-data), -1 expected 174
Save Failed
Cannot save font to C:\Users\test\AppData\Local\Temp//pdf2htmlEX-a14136/__tmp_font1.ttf

Command to reproduce: pdf2htmlEx test.pdf
Thanks.
Reply all
Reply to author
Forward
0 new messages