With TrueType fonts you could dump the referenced object stream as a .ttf & .css file to be included as a web font. The only difficulty I imagine would be converting Type1 or other types of fonts.
While the FoFi library has utility methods to convert from TrueType to Type1 & Type42 there's nothing to go in the other direction, FontForge can do this though and can be automated via scripts. Scribd tackled exactly this issue last year which was covered in-depth on their coding@scribd blog: http://coding.scribd.com/2010/05/17/facing-font-in-html/ On 24 March 2011 11:15, suzuki toshiya <[email protected]> wrote: > Hi, > > I think it's reasonable request. The first step would > be the improvement of utils/HtmlFonts.cc, to translate > the font specification in PDF to that for HTML. > If nobody have sufficient time to start quickly, I > want to do it when I have a time to do it. However, > non-ASCII font names (used by CJK fonts) are often > coded by PostScript syntax and many ad-hoc code would > be required to recover the original face name. > > The next step would be... Although CSS can include more > information to specify a font with detailed typeface > classifications like Panose, most HTML rendering systems > won't reflect it. I guess the pragmatic solution would > be the extension of pdftohtml to generate an archive > (like MHTML or Mozilla archive) that can include HTML, > CSS and fonts. > > Regards, > mpsuzuki > > jack volt wrote: > > Hello , > > > > I have a question about the font of pdftohmtl's output file . > > Is there any way to generate a html a little bit more faithful(and > actuaally > > prettier ) to the original pdf .Output file font is very basic . > > > > Thanks in advance . > > > > Jack Volte > > > > > > > > ------------------------------------------------------------------------ > > > > _______________________________________________ > > poppler mailing list > > [email protected] > > http://lists.freedesktop.org/mailman/listinfo/poppler > > _______________________________________________ > poppler mailing list > [email protected] > http://lists.freedesktop.org/mailman/listinfo/poppler >
_______________________________________________ poppler mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/poppler
