Skip to content

Fix annotation line width if no appearance stream or style are given

When handling annotations without appearance stream, the behavior of poppler deviated from what the pdf spec says: Poppler would only take the boundary width from a border style (BS) dictionary if the 'style (S)' field was also present, even though the spec clearly says that both are optional, and does not mention one depending on the other.

This behavior was deliberate, because apparently Acroread 8 did it that way. See the comment by Jeff Muizelaar in 28967940. But it seems that Acroread behavior has changed, newer versions do take the 'width' field into account even when there is no 'style (S)' field. The Chromium pdf renderer does the same.

So let's change the code back to following the spec rather than an old version of Acroread.

Closes: #988 (closed)

Merge request reports

Loading