DebuggingEvince

Differences between revisions 6 and 17 (spanning 11 versions)
Revision 6 as of 2009-02-13 13:32:20
Size: 2889
Editor: 139
Comment:
Revision 17 as of 2012-05-06 20:22:03
Size: 4110
Editor: dynamic-adsl-78-14-229-161
Comment: added link to Italian translation
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
Available languages : [[https://wiki.ubuntu.com/DebuggingEvince_it| Italiano]],
Line 6: Line 8:
[[http://gnome.org/projects/evince/|Evince]] is the default application in Ubuntu for opening .pdf, .ps and other similar types of files. [[http://gnome.org/projects/evince/|Evince]] is the default application in Ubuntu for opening .pdf, .ps, .djvu and other similar types of files.
Line 13: Line 15:
= Common issues =

== Dvi files ==

Evince uses texlive to render .dvi files. If you cannot open a .dvi file (error message "Unable to open document. DVI document has incorrect format"), install the '''texlive''' package and try again. (There's [[https://bugs.launchpad.net/ubuntu/+source/evince/+bug/42410|bug report #42410]] about correcting this error message)

== CJK fonts ==

CJK stands for Chinese-Japanese-Korean. A pdf that includes such text but lacks the embedded fonts will not render correctly unless you install the package '''poppler-data'''.
Line 14: Line 26:

== Finding the right package ==

Evince uses
 * [[http://poppler.freedesktop.org/|libpoppler]] for rendering pdf files
 * [[http://libspectre.freedesktop.org/|libspectre]] for rendering postscript files
 * [[http://www.pango.org/|libpango]], [[http://www.freetype.org/|libfreetype]] and [[http://fontconfig.org/|fontconfig]] for fonts choosing and rendering
 * [[http://cairographics.org/|libcairo]] for 2D vector graphics
Line 29: Line 33:
=== File missing ===
Line 37: Line 39:
=== Different programs === Once you have the document and have confirmed it doesn't render as it's supposed to in Evince, you have to find the right package for this bug. Evince uses:
 * [[http://poppler.freedesktop.org/|libpoppler]] for rendering pdf files
 * [[http://libspectre.freedesktop.org/|libspectre]] for rendering postscript files
 * [[http://www.pango.org/|libpango]], [[http://www.freetype.org/|libfreetype]] and [[http://fontconfig.org/|fontconfig]] for fonts choosing and rendering
 * [[http://cairographics.org/|libcairo]] for 2D vector graphics
Line 39: Line 45:
Once you have the related document, try opening it with different viewers to try and isolate the problem:
 * Adobe Reader (package acroread, available in the [[http://medibuntu.org/|Medibuntu]] repository)
 * xpdf
Try opening it with different viewers to try and isolate the problem:
 * Adobe Reader (package '''acroread''', available in the [[http://medibuntu.org/|Medibuntu]] repository)
 * Xpdf (package '''xpdf-reader''')
 * ePdfView
 * okular
 * for .ps files: ghostscript
 * for .djvu files: djVuLibre (package '''djview4''')

When pdf files don't include the embedded fonts used in the document, then if Ubuntu doesn't have the specific font installed, it will search for the nearest equivalent, using '''fc-match <font>'''.

It might also be helpful to use the '''pdfinfo''' and '''pdffonts''' utils (included in the poppler-utils package).
Line 52: Line 66:
The upstream bug tracking system for Evince is at http://bugzilla.gnome.org/browse.cgi?product=evince  * Upstream Evince bugs are at http://bugzilla.gnome.org/browse.cgi?product=evince
 * Upstream Poppler bugs are at http://bugs.freedesktop.org/query.cgi
Line 59: Line 74:
----
CategoryDebugging

Available languages : Italiano,

Debugging Central

This page is part of the debugging series — pages with debugging details for a variety of Ubuntu packages.

Introduction

Evince is the default application in Ubuntu for opening .pdf, .ps, .djvu and other similar types of files.

Most bugs related to Evince fall into 3 categories:

  1. Evince crashes when I open a specific document (or when I open it and perform a specific action, like scroll, zoom or rotate)
  2. Evince does not display ("render") the document correctly
  3. Evince displays the document as it should, but then doesn't print it correctly

Common issues

Dvi files

Evince uses texlive to render .dvi files. If you cannot open a .dvi file (error message "Unable to open document. DVI document has incorrect format"), install the texlive package and try again. (There's bug report #42410 about correcting this error message)

CJK fonts

CJK stands for Chinese-Japanese-Korean. A pdf that includes such text but lacks the embedded fonts will not render correctly unless you install the package poppler-data.

Debugging procedure

Crash or Freeze

In case Evince crashes, follow standard DebuggingProgramCrash procedures.

Rendering issues

If the crash/incorrect rendering appears only with a specific document, obtaining that document will help. Here's a stock reply to use in this case:

Thank you for taking the time to report this bug and helping to make Ubuntu even better!  It would be quite helpful if you attach the document you are having a problem with so we can better recreate this bug and work on fixing it.  Thanks in advance.

Once you have the document and have confirmed it doesn't render as it's supposed to in Evince, you have to find the right package for this bug. Evince uses:

Try opening it with different viewers to try and isolate the problem:

  • Adobe Reader (package acroread, available in the Medibuntu repository)

  • Xpdf (package xpdf-reader)

  • ePdfView
  • okular
  • for .ps files: ghostscript
  • for .djvu files: djVuLibre (package djview4)

When pdf files don't include the embedded fonts used in the document, then if Ubuntu doesn't have the specific font installed, it will search for the nearest equivalent, using fc-match <font>.

It might also be helpful to use the pdfinfo and pdffonts utils (included in the poppler-utils package).

Printing problems

Sometimes, when a document printed from evince doesn't print correctly, it is not a problem with Evince, but with cups, or the specific printer driver.

Other issues

How to Forward

Backporting Fixes

Bug fixes are normally backported to all supported Ubuntu releases (you can see which releases are still supported here).

However, this is not always possible, for example when the code architecture has changed significantly. This means that sometimes bugs are marked as "Fix Released" even when they have been fixed only in recent versions of evince/poppler/etc.


CategoryDebugging

DebuggingEvince (last edited 2014-12-29 01:44:55 by penalvch)