[poppler] PDF compliance, regarding Annot /Rect

Leonard Rosenthol lrosenth at adobe.com
Sun Mar 25 11:47:38 UTC 2018


I'll take a look at this and get back you!

Leonard

-----Original Message-----
From: poppler <poppler-bounces at lists.freedesktop.org> On Behalf Of Tobias Deiminger
Sent: Sunday, March 25, 2018 5:53 AM
To: poppler at lists.freedesktop.org
Subject: Re: [poppler] PDF compliance, regarding Annot /Rect

Leonard, there was a very interesting conversation between you and Fabio, see https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.freedesktop.org%2Farchives%2Fpoppler%2F2012-April%2F008948.html&data=02%7C01%7Clrosenth%40adobe.com%7C00e4c8e9d39a4096e85a08d5923625c9%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636575683634214644&sdata=TVOMm776X4nrYagyGssjbSARguXVTCgIqVHzQYfF1OE%3D&reserved=0.

Fabio wonders why acroread does not clip Annot Line [0 0 200 200] to Anot Rect [0 0 100 100]. You said:
> Acrobat & Adobe Reader must certainly clip an annotations appearance to the bounding area of the annotation.

but also added
> HOWEVER, it doesn't have a prebuilt appearance [...] Since your line has an L (the actual line coords) of [0 0 200 200], that causes Acrobat/Reader to generate a new bounding box that incorporates the entire line as that is what one would expect.

Last week you answered my question about Annot Rect:
> However, you are completely correct that drawing an AP (either 
> pre-generated or dynamically created) outside of the Rect is a bug.

With my limited knowledge the answers seem a bit incompatible to me.
Fabios Annot Line [0 0 200 200] needs to be dynamically generated.
Following "drawing an AP (pre-generated or dynamically created) outside of the Rect is a bug"
=> This means if we don't clip the Line, it's a bug.
Following "incorporates the entire line as that is what one would expect"
=> This means if we don't clip the Line, it's NOT a bug, but expected.

Could you clarify this?

One more, if you have some time left: What about the algorithm from ISO 32000-1:2008, 12.5.5 - It says we have to *scale* appearances into Annot Rect, not only clipping them. Does this apply to the Annot Line example? If I consider it as dynamically generated appearance and apply the algorithm, it would always be scaled (shrinked) into [0 0 100 100]. No chance to get the Adobe behavior this way, is it?

Thanks a lot,
Tobias

_______________________________________________
poppler mailing list
poppler at lists.freedesktop.org
https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.freedesktop.org%2Fmailman%2Flistinfo%2Fpoppler&data=02%7C01%7Clrosenth%40adobe.com%7C00e4c8e9d39a4096e85a08d5923625c9%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636575683634214644&sdata=NSkOvzvYTxxzz6WgjMB8NMbbOTxfe%2FFQau2JlnjIQfM%3D&reserved=0


More information about the poppler mailing list