Home > Evince, Free Software, GNOME > Evince PostScript backend

Evince PostScript backend

Yesterday at 10:00pm I decided that it was about time to start working on a project that I am supposed to finish by April 13th. The project consists of finding a way to implement text search and selection in a PostScript document viewer. I then checked out Evince from the gnome svn tree, and started checking its code,  in order to try to implement those features in my favorite document viewer.

First I tried to make the current PostScript backend prepend a text extraction prologue to all PostScript documents it open, to override the /show /kshow …. operators, and make them spit out some informations about the position of the glyphs and their value. The idea seemed okay, but in fact it was quite heavy, and overblown… I had to think about something simpler, and still powerful.

The idea of using ghostscript pdfwrite output device to generate a pdf stream out of a PS file and send it directly to poppler for the rendering came then to my mind. The nice part about it, is that we can inherit all the nice and cool features of the PDF implementation in Evince.

I started hacking yesterday at around 11:30, and today at 15:00 I had a fully functionnal PostScript backend implementation that can let you select text, copy it, search for text and display pages thumbnails :D

During this short project, I felt in love with Evince architecture. Evince is for sure a very well designed software.

Categories: Evince, Free Software, GNOME
  1. April 2, 2007 at 8:06 pm | #1

    Ali Sabil foundation for one project improvement per night! yay!

  2. April 2, 2007 at 10:33 pm | #2

    Nice job : p !

  3. jinzo
    April 2, 2007 at 11:12 pm | #3

    lol jprieur… soo true :)

  4. yo
    November 29, 2008 at 5:27 am | #4

    Hi,
    Can please make the hack available??

  1. No trackbacks yet.