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 300948 - Create testcases for evince
Create testcases for evince
Status: RESOLVED FIXED
Product: evince
Classification: Core
Component: general
git master
Other Linux
: Low enhancement
: ---
Assigned To: Evince Maintainers
Evince Maintainers
Depends on:
Blocks:
 
 
Reported: 2005-04-17 14:24 UTC by Nickolay V. Shmyrev
Modified: 2013-07-09 20:14 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Another test case that prints properly in PDF Viewer, but title appears as fixed width upon printing. (203.52 KB, application/pdf)
2005-11-15 17:52 UTC, Norton
Details
Encrypted PDF testcase. Userpassword: gird Ownerpassword: owner (3.18 KB, application/octet-stream)
2007-01-01 01:53 UTC, lars.bamberger
Details
Problem displaying latex beamer pdf presentation (569.61 KB, application/pdf)
2007-04-30 20:21 UTC, Sylvain Archenault
Details
testcase pdf for evince (57.47 KB, application/pdf)
2007-05-06 11:09 UTC, Stepan Roucka
Details
Image Scaling Problem. Image appears differently in different zooming value. (15.86 KB, application/pdf)
2010-04-09 20:43 UTC, salahuddin
Details
A PDF file which I can't fill in with evince (114.95 KB, application/pdf)
2011-12-02 09:39 UTC, Cambon de Lavalette
Details

Description Nickolay V. Shmyrev 2005-04-17 14:24:18 UTC
I think evince should have some set of test documents, like encrypted pdf file,
files with links and so on. 

It's not neccessary to have such documents included into sources, but they can
be located somewhere.
Comment 1 Bryan W Clark 2005-04-18 03:03:07 UTC
Good idea, we could probably put them up on the evince project site.  However
since I'm planning on moving much of it to live.gnome.org perhaps we should
create that first.  Then we can add things to live instead.
Comment 2 Bryan W Clark 2005-04-27 07:09:31 UTC
Nickolay: If you have links or ideas for test documents I've started a page here:
http://live.gnome.org/Evince/Testing
Comment 3 Nickolay V. Shmyrev 2005-04-27 09:12:57 UTC
I have some documents, but isn't it better to collect them in one place then
just collecting links? Unfortunately I have no idea were can we get about 50 Mb
(that should be enough) available that are available.
Comment 4 Marco Pesenti Gritti 2005-05-09 11:07:10 UTC
Maybe it would be better to host these on freedesktop.org? That way all poppler
users can share them... CCing Kristian
Comment 5 Kristian Høgsberg 2005-05-10 18:40:42 UTC
I've been wanting to build an online collection of PDF test documents, but one
thing that's been holding me back is uncertainty about redistribution rights of
the PDFs.  Some of the PDFs I use for testing I've just pulled of the web, some
have been attached in bugzilla reports and some sent to me directly.

It's not clear that just because a document has been attached in bugzilla or is
freely downloadable from some website that we can add it to a test suite. 
Ideally, whenever we fix a bug, we could recreate a minimal PDF that reproduce
the problem and add that to our test suite, but that's going to be a lot of work.
Comment 6 Bryan W Clark 2005-06-14 20:22:12 UTC
Ok, I'm going to close this now.  Kristian has a great idea for the test suite,
but if it's a lot of work and no one is going to implement it we might as well
close the bug.
Comment 7 Nickolay V. Shmyrev 2005-06-14 20:40:38 UTC
I am going to do it soon, so let me reopen.
Comment 8 Kristian Høgsberg 2005-06-14 21:57:35 UTC
We have a small test system setup now that Jeff has done, see 

  http://cvs.freedesktop.org/poppler/test/

It is based around the idea of rendering a minimal PDF file using a specific PDF
feature and compare the output to a pre-rendered PNG file.  If you could base it
off that, that would be great.
Comment 9 Marco Pesenti Gritti 2005-07-11 16:08:54 UTC
nsh, ping about this? What are we going to do?
Comment 10 Bryan W Clark 2005-07-11 16:16:07 UTC
As much as I enjoy test cases... later! :)
Comment 11 Steve Field 2005-09-24 03:10:03 UTC
As far as test cases. Here's one that doesn't render correctly with gnome pdf
viewer v2.8.2 or evince v0.4.0 (same poppler lib?) on an updated FC4_x86-64
system. The linked document does render correctly with xpdf, though.

http://www.ready.gov/pdf_eefak.html
Comment 12 emmet 2005-10-18 13:50:00 UTC
Here's a test case for an embedded PNG with transparency that evince 0.4.0
(ubuntu breezy and FC4) gets wrong (xpdf and acroread get it right)

    http://emmetcaulfield.com/misc/evince-trans-test.pdf

Emmet.
Comment 13 Alexander E. Patrakov 2005-10-19 02:29:51 UTC
See also Bug 319049
Comment 14 Christoph Burghardt 2005-11-07 17:24:15 UTC
http://www.tug.org/texshowcase/LorenzAttractor.pdf
Comment 15 Norton 2005-11-15 17:52:37 UTC
Created attachment 54789 [details]
Another test case that prints properly in PDF Viewer, but title appears as fixed width upon printing.

To be listed under http://live.gnome.org/Evince/Testing, under heading "Font is
correct when viewing, but becomes fixed-width when printing. Gnome PDF Viewer
prints correctly."
Comment 16 andrew elmore 2005-12-22 02:51:46 UTC
Here is a document which doesn't render properly:  http://www.caltrain.com/pdf/filming.pdf
Comment 17 Wesley McGee 2006-01-22 15:00:50 UTC
I'd like to add this to the list of PDFs that don't work with Evince -- http://www.wmata.com/timetables/va/16a-l.pdf
Comment 18 Wouter Bolsterlee (uws) 2006-10-23 19:29:27 UTC
Nickolay, any progress on this?
Comment 19 Nickolay V. Shmyrev 2006-10-23 22:15:07 UTC
Finally done. Since now it would be nice to have tests and documentation for every new functionality added
Comment 20 lars.bamberger 2007-01-01 01:42:15 UTC
Encrypted PDF files don't work for me.
Can anybody please provide a simple testcase for an encrypted PDF file (with password)?

I stumbled across http://www.password-crackers.com/DOWNLOAD/guapdf-2.22-DEMO.tar.gz
and the file 'encrypt.pdf' therein. However, without the correct password this file is useless. (E9 72 00 00 25 does not seem to be the password.)


Comment 21 lars.bamberger 2007-01-01 01:53:36 UTC
Created attachment 79128 [details]
Encrypted PDF testcase. Userpassword: gird Ownerpassword: owner

Diregard my last comment.....
Comment 22 Nickolay V. Shmyrev 2007-01-11 00:12:54 UTC
Thanks a lot Lars, we now have encrypted document in tests.
Comment 23 Sylvain Archenault 2007-04-30 20:21:17 UTC
Created attachment 87289 [details]
Problem displaying latex beamer pdf presentation

Evince doesn't display properly footers on some pages (1,7,9,...) of this latex beamer presentation.

On top of that, there is some background color problems of the headers and footers when displaying in presentation mode.

My evince version is 0.4.0.
Comment 24 Wouter Bolsterlee (uws) 2007-05-01 13:17:49 UTC
(In reply to comment #23)

Works fine here, your Evince is probably waaaaaaay too old.
Comment 25 Stepan Roucka 2007-05-06 11:09:29 UTC
Created attachment 87647 [details]
testcase pdf for evince

Pdf created by pdftex (context) and graph created using python/pylab PS backend and epstopdf. Evince 0.8.1(poppler 0.5.4) doesn't render description of x axis. Acrobat reader 7 and xpdf 3.01 render this correctly.
Comment 26 Carlos Garcia Campos 2007-05-06 11:36:19 UTC
Thanks for the file Stepan, it looks like a bug in the poppler cairo backend. I've just filed it in freedesktop bugzilla

https://bugs.freedesktop.org/show_bug.cgi?id=10873
Comment 27 Nickolay V. Shmyrev 2007-05-07 05:28:16 UTC
Dear users. This bug is FIXED. There is no need to attach files here, it's SENSELESS.
Comment 28 Gabriel de Perthuis 2007-11-16 14:45:11 UTC
I've found a document that does not display properly (highlighted text), where shall I add it then?

Also note that this bug is still linked from http://live.gnome.org/Evince/Testing . Don't just remove it, tell us where tests go.
Comment 29 Nickolay V. Shmyrev 2007-11-17 07:28:09 UTC
Thanks a lot, Gabriel.

I think this bug is more about functionality tests oriented on particular part of Evince. But probably if we'll collect all test cases that doesn't work they finally will show us something.
Comment 30 Gabriel de Perthuis 2007-11-17 07:48:57 UTC
Nevermind, I reported a bug over there: bug 497579 .
Comment 31 salahuddin 2010-04-09 20:43:34 UTC
Created attachment 158324 [details]
Image Scaling Problem. Image appears differently in different zooming value.

Image scaling problem in PDF. 

Image behave differently, in different resolution and zooming value.

"Document Viewer 2.28.2 , Using poppler 0.12.2 (cairo)"


Normal scaling of these image in gnome seems fine (Eye of GNOME 2.28.2).
Comment 32 Cambon de Lavalette 2011-12-02 09:39:45 UTC
Created attachment 202576 [details]
A PDF file which I can't fill in with evince

Hello, i can't fill in the text in this file 
E.g page 3: 
En quoi consiste le projet à l’origine de votre candidature au Prix 2011 de la Fondation Macif « L’alimentation autrement : Santé, biodiversité, accessibilité »?

In this part of the document, I can't write anything
Comment 33 Vincent 2011-12-04 16:21:28 UTC
(In reply to comment #32)
> Created an attachment (id=202576) [details]
> A PDF file which I can't fill in with evince
> 
> Hello, i can't fill in the text in this file 
> E.g page 3: 
> En quoi consiste le projet à l’origine de votre candidature au Prix 2011 de la
> Fondation Macif « L’alimentation autrement : Santé, biodiversité, accessibilité
> »?
> 
> In this part of the document, I can't write anything

Confirming the issue with Document Viewer 3.2.1 in Ubuntu 11.10.

As this bug is closed, is it still the good place to submit this kind of problem?
Comment 34 James E. LaBarre 2013-07-09 19:59:38 UTC
PDF with overlay instructions that won't go away

https://apps.health.ny.gov/doh2/applinks/accessny//forms/DOHAccessNyMainForm.pdf

This document has an overlay which provides instructions on filling out the form's fillable fields, etc.  It is supposed to go away as soon as you click in the box, but this does not work in Evince (or Okular either, amongst others).  This makes it impossible to fill out the form, as the overlay covers much of the page and makes it impossible to fill out.

The file itself is too large to post here (3.5M), so I have provided the download link above.
Comment 35 Germán Poo-Caamaño 2013-07-09 20:14:57 UTC
(In reply to comment #34)
> PDF with overlay instructions that won't go away
> 
> https://apps.health.ny.gov/doh2/applinks/accessny//forms/DOHAccessNyMainForm.pdf
> 
> This document has an overlay which provides instructions on filling out the
> form's fillable fields, etc.  It is supposed to go away as soon as you click in
> the box, but this does not work in Evince (or Okular either, amongst others). 
> This makes it impossible to fill out the form, as the overlay covers much of
> the page and makes it impossible to fill out.
> 
> The file itself is too large to post here (3.5M), so I have provided the
> download link above.

The form require Javascript, which is not implemented in poppler (the library that uses Evince and Okular to render PDFs).

See https://bugs.freedesktop.org/show_bug.cgi?id=14433 for more information.