[poppler] Missing fonts on DefaultAppareance of Form fields

Leonard Rosenthol lrosenth at adobe.com
Mon Feb 18 07:49:48 PST 2013


You are right – it's not there.

It looks like this PDF was created by a producer that did something stupid :(.   Unfortunately, there is a lot of that out there.

Leonard

From: "jose.aliste at gmail.com<mailto:jose.aliste at gmail.com>" <jose.aliste at gmail.com<mailto:jose.aliste at gmail.com>>
Date: Monday, February 18, 2013 10:44 AM
To: Leonard Rosenthol <lrosenth at adobe.com<mailto:lrosenth at adobe.com>>
Cc: "poppler at lists.freedesktop.org<mailto:poppler at lists.freedesktop.org>" <poppler at lists.freedesktop.org<mailto:poppler at lists.freedesktop.org>>
Subject: Re: [poppler] Missing fonts on DefaultAppareance of Form fields

Leonard,

thanks for your answer, please look at [1] for an example of such file (the IRS form of 2008). In there, I can't find the Helvetica Bold font in the resources, but the DA streams all contain the /HeBo when specifying the font. About forcing to Dingbats, poppler only forces Dingbats to render the checkboxes and the radio buttons even on pdf files that don't have Dingats in their resources (that's my understanding of the code, maybe I am mistaken). It just happened that I could re-use the code to force adding resources of missing fonts.



Greets

José







[1] http://bugzilla-attachments.gnome.org/attachment.cgi?id=124437


On Mon, Feb 18, 2013 at 2:25 PM, Leonard Rosenthol <lrosenth at adobe.com<mailto:lrosenth at adobe.com>> wrote:
Jose – that's strange, those names aren't special and need to have associated resources.

However, they are fairly standard…so if you must map, then map correctly (not just to Dingbats for all).

Leonard

From: "jose.aliste at gmail.com<mailto:jose.aliste at gmail.com>" <jose.aliste at gmail.com<mailto:jose.aliste at gmail.com>>
Date: Monday, February 18, 2013 5:29 AM
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] Missing fonts on DefaultAppareance of Form fields

Hi list,

There are some PDF's out there (I don't know how common they are, but at least the IRS tax form of 2008 used to have this) that specify fonts like /Helv or /HeBo in their DA streams without specifying the corresponding font in the resources. You will find a proof-of-concept patch, where I refactor the code we use to force ZapDingbats to  render any of the standard 14 fonts given by the short refs. So the first question is, Do we want a feature like this? If so, reviews to make this mergable are most than welcome.


Greetings

José


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/poppler/attachments/20130218/24c9fa3e/attachment.html>


More information about the poppler mailing list