pdf2htmlEX icon indicating copy to clipboard operation
pdf2htmlEX copied to clipboard

Error: Cannot save font to

Open joseluisct opened this issue 7 years ago • 2 comments

I have an error converting some pdf files, it is: 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

I'm using Windows last executable:

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

Thank you.

joseluisct avatar Jan 24 '18 13:01 joseluisct

I'm testing it and fails at page 76 but if I change pages order, it still fails at page 76, even if I remove it from file.

It's fails even with command: pdf2htmlEx test.pdf

And testing to split it into files of 10 pages for example, it works OK... but I can't use it, I need to convert all pages in one file.

joseluisct avatar Jan 25 '18 08:01 joseluisct

Some font in pdf can NOT convert. You must change the origin code to skip it. Most time there is no problem if you do it.

hkajcy avatar Feb 06 '18 09:02 hkajcy