[poppler] pdftohtml : enhancing it to use embedded fonts

Leonard Rosenthol lrosenth at adobe.com
Mon Jun 6 17:09:23 PDT 2011


If the flags are there, you can use them - the problem is that many PDF creators remove them :(.

-----Original Message-----
From: poppler-bounces+leonardr=adobe.com at lists.freedesktop.org [mailto:poppler-bounces+leonardr=adobe.com at lists.freedesktop.org] On Behalf Of mpsuzuki at hiroshima-u.ac.jp
Sent: Monday, June 06, 2011 2:14 PM
To: Josh Richardson
Cc: poppler at lists.freedesktop.org
Subject: Re: [poppler] pdftohtml : enhancing it to use embedded fonts

Dear Josh,

I wish your development would be started with the PDF including GPL font only, to gather the developers without copyright issue. I wish if Leonard comments about some flag settings in PDF and fonts to indicate the font extraction and modifications are permitted.

On Mon, 6 Jun 2011 10:49:54 -0700
Josh Richardson <jric at chegg.com> wrote:

>I chose OpenType over TrueType based on the contents of this article:
>http://www.brighthub.com/multimedia/publishing/articles/80115.aspx
>
>In general, I am assuming that all modern browsers will support 
>OpenType, and given it's more capable, seems like the best starting 
>point.  Do you have reasons we should default to TrueType instead?

Ah, no, I'm not pushing as TrueType is better than OpenType.
I think "OpenType" is used in several meanings; for some people, the contrast is "OpenType, with complex text layout" vs "TrueType, without complex text layout", for other people, the contrast is "OpenType, with CFF outline table" vs "TrueType, with glyf outline table", etc. So just I've asked the question - and now I think you used the term OpenType as the superset of TrueType.

>I agree with you that the font-extraction process should be done 
>separately from Poppler, and FontForge is the solution I will try.  I 
>will set it up so that if the user has the required software, they can 
>use it, and if not, they will get the current mappings.

Umm, I didn't intend to recommend to use Fontforge to extract font resource from PDF. Quite sorry for my poor English. I wanted to propose to consider Fontforge as a convertor from
Type3 fonts in PDF to Type1 or TrueType font.

Regards,
mpsuzuki


>Thanks everybody for the pointers.
>
>Best, --josh
>
>On 6/5/11 6:31 PM, "mpsuzuki at hiroshima-u.ac.jp"
><mpsuzuki at hiroshima-u.ac.jp> wrote:
>
>>Hi,
>>
>>Although I don't have sufficient time to work this feature, I remember 
>>there was similar request before a few months, so I appreciate if you 
>>will work (or you can find any volunteer to work) with it.
>>
>>On Sun, 5 Jun 2011 15:41:53 -0700
>>Josh Richardson <jric at chegg.com> wrote:
>>>This should give us an exact representation of the original font in 
>>>the PDF, though it will only work with modern browsers, since earlier 
>>>browsers don't support "@font-face".  For IE, I'll have to convert 
>>>the font to EOT, and for the others I'll probably use regular 
>>>OpenType (not
>>>TrueType) format.
>>
>>Excuse me, why "regular OpenType (not TrueType)"?
>>
>>--
>>
>>I propose to consider WOFF as the first milestone instead of EOF, 
>>although I think that still the most people is using HTML browsers 
>>without WOFF support. The reasons are:
>>
>>* The W3C standardization of EOT is almost stopped since 2008,
>>  but WOFF is being in the process to be a W3C recommendation.
>>
>>* WOFF would be cross platform solution for newer HTML
>>  browsers; IE, Firefox, Chrome, Safari etc. But EOT
>>  would not be cross platform solutions.
>>
>>* The patent issue of EOT is not clarified yet. EOT uses the
>>  patent to compress the font, owned by Agfa (not Microsoft!),
>>  and there is no explicit permission to use without royalty.
>>  It seems that the participants from Agfa was willing to
>>  permit(*), but the EOT standardization process is stopped
>>  now, so no explicit permission is not documented yet.
>>
>>  (*) See http://www.w3.org/Fonts/Misc/minutes-2008-10 and  find the 
>> comment by Vladimir saying that Agfa's patents  were contributed on 
>> an royalty free basis.
>>
>>  I heard that there are some GPLv2 softwares dealing with EOT,  but 
>> I'm not sure if they are implementing the free part of  EOT spec or 
>> they think EOT is already royalty free technology.
>>
>>>Does anyone see an issue with the approach, or have any advice?  For 
>>>instance, I'm not sure how much luck I'll have with converting 
>>>especially Type 3 fonts to OpenType/EOT.
>>
>>Either I don't have good idea about Type3 fonts. The Type 3 font in 
>>PDF is described by PDF instructions, so something like PDF renderer 
>>having PS Type1 (or TrueType outline instructions) as its output 
>>device. Fontforge can convert SVG graphics to
>>Type1 or TrueType fonts, but linking fontforge with poppler is 
>>overkill. Making some SVG pictures and a script to convert them to a 
>>font by external fontforge could be the first step...
>>
>>Regards,
>>mpsuzuki
>>
>
_______________________________________________
poppler mailing list
poppler at lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/poppler


More information about the poppler mailing list