Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#86 PDF Support

open
Pontus Ekberg
None
5
2009-02-22
2008-05-28
Johan Linde
No

To the short list of things I find lacking in Comix, PDF Support is the most important. I hope this is implemented as I now have to fire up Evince to read stuff. Thanks in advance!

Discussion

  • Pontus Ekberg
    Pontus Ekberg
    2009-02-22

    • assigned_to: nobody --> herrekberg
     
  • Pontus Ekberg
    Pontus Ekberg
    2009-02-22

    The problem with PDF reading is that there is no clean way to read PDFs using Python/PyGTK. There are Python bindings for Poppler, but they are not official and probably not standard software on most systems.

     
  • John Wolfe
    John Wolfe
    2009-02-23

    worst case scenario, you could shell out to something like imagemagick (or the netpbm tools) to convert the pdf to png/jpg files, then zip them up into an already-readable format.

     
  • Pontus Ekberg
    Pontus Ekberg
    2009-02-28

    There is a tool called pdfimages bundled with Poppler (or xpdf) that can extract all images in a PDF file. Some years ago I actually did hook it up to Comix to have it read PDFs (only the images of course), but it was rather slow. I tried pdfimages again now and it seems a lot faster now than I remember it to be. The command-line interface it offers doesn't really fit into Comix' archive handling though (a PDF will be treated like an archive basically), but with some hacks it could be made to work.