[poppler] FreeText font/border color in DA - ISO32k vs Adobe Reader vs poppler

Tobias Deiminger haxtibal at posteo.de
Fri Aug 24 15:36:30 UTC 2018


Am Freitag, 24. August 2018, 17:05:34 CEST schrieb Leonard Rosenthol:
> That helped - thanks!
> 
> It appears that even though we are parsing the DA for the text colors (and storing them in a variable that tracks the GState of the DA) - we don't actually use those text colors when we generate AP (as you are seeing) ☹.   Definite bug on our end.
> 
> I'll file it here and we'll see about addressing it in a future release.
> 
> So my recommendation to you - do the right thing and don't follow our bug.

Cool, thanks a lot Leonard for the quick dive into your code, and for reporting the bug!
That's good news, for poppler side at least ;-) We did some work during Google Summer of Code, and if we had to follow the Adobe behavior now, it would have meant to discard parts of that work again.

> So, you should know that 32000-2 now mandates an appearance (/AP)
> so it may be time to consider adding that to Poppler
> (or at least putting it in the plans sooner rather than later)

I'm proponent of doing /AP and actually thinking from time to time about how it could be done. Anybody with similar interest here?
We shouldn't be that far away. We already create an appearance object for AP in-memory and have the possibility to add/modify object trees. It's mainly the Resource Dict that needs to be setup in a conforming way. Atm. there are some fake resources that are ok for poppler, but won't work if saved to file and consumed by other readers.

Cheers
Tobias

> Leonard
> 
> -----Original Message-----
> From: poppler <poppler-bounces at lists.freedesktop.org> On Behalf Of Oliver Sander
> Sent: Friday, August 24, 2018 10:51 AM
> To: poppler at lists.freedesktop.org
> Subject: Re: [poppler] FreeText font/border color in DA - ISO32k vs Adobe Reader vs poppler
> 
> Hi Leonard, thanks for answering,
> 
> > Is there a sample PDF that demonstrates the difference?  I didn't see it in that long thread.
> 
> I think Tobias accidentally posted the wrong link.  He meant
> 
>   https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgitlab.freedesktop.org%2Fpoppler%2Fpoppler%2Fissues%2F6&data=02%7C01%7Clrosenth%40adobe.com%7Cb2892ea3410f4942cbfc08d609d10f64%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636707190850707824&sdata=UdyLDJ%2Bx7igdLi%2BHYLvQq%2FZ89MlCW%2Fh8OPa9WIipIXU%3D&reserved=0
> 
> An example file is posted there.  For your convenience, here is the direct link:
> 
>   https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgitlab.freedesktop.org%2Fpoppler%2Fpoppler%2Fuploads%2F65d977b6d4fb2070a2702610205cb547%2Fminimal_adobe_noap.pdf&data=02%7C01%7Clrosenth%40adobe.com%7Cb2892ea3410f4942cbfc08d609d10f64%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636707190850707824&sdata=LuZn6GeSjLHx%2BdP9lanw5ILeqBfcXfCWas8SL8YWYZY%3D&reserved=0
> 
> Best,
> Oliver
> 
> _______________________________________________
> poppler mailing list
> poppler at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/poppler
> 




More information about the poppler mailing list