[Poppler-bugs] [Bug 49872] New: Don't substitute font names [patch included]

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Sun May 13 08:27:36 PDT 2012


https://bugs.freedesktop.org/show_bug.cgi?id=49872

             Bug #: 49872
           Summary: Don't substitute font names [patch included]
    Classification: Unclassified
           Product: poppler
           Version: unspecified
          Platform: Other
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: medium
         Component: pdftohtml
        AssignedTo: poppler-bugs at lists.freedesktop.org
        ReportedBy: lparravi at gmail.com


Created attachment 61558
  --> https://bugs.freedesktop.org/attachment.cgi?id=61558
Patch to output font full name

When generating html/xml from a pdf, the font name is substituted using the
'font' array in utils/HtmlFonts.cc and using 'Times' as default if the font is
not found on that array.

As I need the font name as is in the pdf, I've written a patch to support that.
You might find it useful too (or not!).

The patch provided adds a new command line option to pdftohtml,
"-fontfullname", which outputs the font name without any substitutions. This is
done for both html and xml. I don't know how if this makes sense in the case of
html, but it would be trivial to change that.

With this patch, issue 34057 can be resolved.

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the Poppler-bugs mailing list