[poppler] Annot rendering improvements
lrosenth at adobe.com
Sat Mar 31 21:19:06 PDT 2012
Acrobat & Adobe Reader must certainly clip an annotations appearance to
the bounding area of the annotation.
If you have an example PDF where this is not the case, I would very much
like to see it.
On 3/31/12 8:20 AM, "Fabio D'Urso" <fabiodurso at hotmail.it> wrote:
>> From: Carlos Garcia Campos
>>> Excerpts from Fabio D'Urso's message of jue mar 29 00:47:36 +0200 2012:
>>> 0005 adds leading line support when drawing AnnotLines.
>>This causes that nothing is drawn in page 7 of pdf_commenting_new
>>where Leader extension lines are supposed to be. Previously, two lines
>>were rendered, although without the leading thing.
>Thank you for testing. After some some experiments I found the cause.
>I mildly blame the PDF itself for this. Those two annotations exceed the
>Looking closer, you'll see that only the visible part of the AnnotLine is
>(a small fraction of the leading lines).
>The only solution I see is to disable bbox clipping. The specs say that
>must be contained within the bbox, but acroread does not enforce this,
>probably why no one noticed. If you disable clipping, everything gets
>(I'm attaching a diff for you to test with)
>>> Note on 0007: AnnotFreeText is a box with text inside. This patch only
>>>implements basic functionality:
>>> I'll try to fix 0007 to output font res dict tomorrow, but I feel that
>>>even at this stage this basic implementation can be useful.
>>> The other patches are final
>>I haven't tried this yet, since it doesn't seem to be finished.
>In reply to that mail, I posted a slightly changed 0007 and another patch
>to fix the invalid font reference.
>I don't plan to add other features to AnnotFreeText, therefore I consider
More information about the poppler