Q: We are using PDFTron pdf2svg (
http://www.pdftron.com/pdf2svg/
index.html) and we noticed that the output svg does not contain the
correct font name that embedded inside the pdf, for example:
font-family="fnt4"
which is different from the original font name.
How can we preserve the font family name?
-----------------
A: This naming convention occurs only for embedded SVG fonts. We
encountered a problem where in some SVG viewers embedded fonts would
not displayed properly if they had certain characters or colliding
names. If fonts are not embedded PDF2SVG will try to preserve font
family name in the CSS descriptor.
If required, we could definitely alter this behavior (or at least
offer an extra option to keep the original family name).