[poppler] Font substitution in pdftohtml

Josh Richardson jric at chegg.com
Wed Jun 15 12:17:48 PDT 2011


In case you missed recent posts, I'm also going to be working on retaining the original embedded fonts, but I don't have any insights on this yet that aren't already in the mailing list archive.  I haven't yet spent the time to figure out how to extract the font.

Best, --josh

From: Chris Ahlers <chris at slideshare.com<mailto:chris at slideshare.com>>
Date: Wed, 15 Jun 2011 11:22:14 -0700
To: "poppler at lists.freedesktop.org<mailto:poppler at lists.freedesktop.org>" <poppler at lists.freedesktop.org<mailto:poppler at lists.freedesktop.org>>
Subject: [poppler] Font substitution in pdftohtml

Hi everyone,

I've noticed that with the pdftohtml util, embedded fonts in the PDF are automatically rendered as "Times" in the HTML/CSS. I'm trying to disable the font substitution, and have the fonts listed in the CSS match the original PDF fonts (I realize that these won't display properly unless the user have the correct fonts installed).

I'm looking through the code, but I don't see any obvious places in where the original font name is discarded and substituted with "Times". Could someone point me in the right direction so I can make these changes?

I'm generating complex documents with the -c flag.

Thanks,
-Chris
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/poppler/attachments/20110615/a4a09ce7/attachment.html>


More information about the poppler mailing list