GNOME Bugzilla – Bug 300948
Create testcases for evince
Last modified: 2013-07-09 20:14:57 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.
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.
Nickolay: If you have links or ideas for test documents I've started a page here: http://live.gnome.org/Evince/Testing
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.
Maybe it would be better to host these on freedesktop.org? That way all poppler users can share them... CCing Kristian
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.
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.
I am going to do it soon, so let me reopen.
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.
nsh, ping about this? What are we going to do?
As much as I enjoy test cases... later! :)
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
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.
See also Bug 319049
http://www.tug.org/texshowcase/LorenzAttractor.pdf
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."
Here is a document which doesn't render properly: http://www.caltrain.com/pdf/filming.pdf
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
Nickolay, any progress on this?
Finally done. Since now it would be nice to have tests and documentation for every new functionality added
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.)
Created attachment 79128 [details] Encrypted PDF testcase. Userpassword: gird Ownerpassword: owner Diregard my last comment.....
Thanks a lot Lars, we now have encrypted document in tests.
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.
(In reply to comment #23) Works fine here, your Evince is probably waaaaaaay too old.
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.
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
Dear users. This bug is FIXED. There is no need to attach files here, it's SENSELESS.
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.
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.
Nevermind, I reported a bug over there: bug 497579 .
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).
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
(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?
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.
(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.