After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 503087 - Internal and external links diplay and print problem
Internal and external links diplay and print problem
Status: RESOLVED NOTABUG
Product: evince
Classification: Core
Component: PDF
2.20.x
Other Linux
: Normal normal
: ---
Assigned To: Evince Maintainers
Evince Maintainers
Depends on:
Blocks:
 
 
Reported: 2007-12-11 18:11 UTC by Pedro Villavicencio
Modified: 2008-05-08 19:14 UTC
See Also:
GNOME target: ---
GNOME version: 2.19/2.20



Description Pedro Villavicencio 2007-12-11 18:11:40 UTC
This report has been filled here:

https://bugs.launchpad.net/ubuntu/+source/evince/+bug/156643

"Evince display all the links in a document inside a pdf document inside a ugly red box. It's impossible to remove these box. These box also appear when you print the document"

Example: 

http://eric.beliweb.net/web/evince.png

"Note that these box are not displaying in acroread."

PDF: 

http://launchpadlibrarian.net/10163920/memoire.pdf

View in Acroread: 

http://launchpadlibrarian.net/10169376/acroread.png
Comment 1 Carlos Garcia Campos 2007-12-13 14:08:37 UTC
The problem is that this document is wrong. It contains annotations like:

293 0 obj <<
/Type /Annot
/Border[000]/H/I/C[1 0 0]
/Rect [113.877 570.67 219.679 584.617]
/Subtype /Link
/A << /S /GoTo /D (chapter*.3) >>
>> endobj

The Border array is wrong. According to the PDF spec: 

"the array consists of three numbers defining the horizontal corner
radius, vertical corner radius, and border width, all in default user space units.
If the corner radii are 0, the border has square (not rounded) corners; if the
border width is 0, no border is drawn"

In this case the array has only one item, since there is no space between the '0'. The spec also says that default value is [ 0 0 1 ]. 

I would like to know why acroread doesn't draw the borders. 

In case of printing, it was already fixed in svn. 
Comment 2 Roel Huybrechts 2008-05-08 19:14:56 UTC
This issue persists in Evince 2.22.1.1. Excerpt from affected pdf:

obj <<./Type
/Annot./Border[0 0 1]/H/I/C[1 0
0]./Rect [425.531 286.992 432.9
78 298.682]./Subtype /Link./A <<
/S /GoTo /D (table.1) >>.>> end
obj

The border is shown in Evince (as it should, since the border width is 1), but appears too when the document is printed.. As you can see the Border array syntax is in accordance with the PDF spec as cited above.