mgieseki / dvisvgm

A fast DVI, EPS, and PDF to SVG converter
https://dvisvgm.de
GNU General Public License v3.0
295 stars 28 forks source link

pdf to svg (text becomes empty) #224

Closed povpie closed 1 year ago

povpie commented 1 year ago

I used another software to create a few pdfs but when converting to svg (dvisvgm --pdf -Oall -fwoff2,ah) I'm getting an empty svg where texts are supposed to be.

flyerExample3.pdf

It seems that the fonts don't even get recognized because I don't receive warning error from the missing autohint.

mgieseki commented 1 year ago

This is a tricky issue because the CID font data embedded in the PDF file is incomplete so that the current PDF handler can't match the font names. I've added a workaround that hopefully works with most PDF files of this type.