PDF Support

edited November -1 in Development

Hi there,

Just stumbled upon

http://www.icepdf.org/

ICEPdf ist open-source under MPL 1.1,

http://www.icepdf.org/support/license-faq.html#intellectualproperty

says that you can freely distribute it. On

http://wiki.icefaces.org/display/PDF/Converting+PDF+Page+Renderings

there is a little example how to convert pdfs in images, which you can use for presenting pdfs.


Regards

Tom

Comments

  • edited February 2011

    Hi Tom,

    OpenLP v2 is developed in Python rather than Java, so unfortunately we're not able to make use of this pdf library.

  • JDLJDL
    edited March 2011

    Could this be helpful?

    I've not read all of the way through, but it looks capable.

    http://pybrary.net/pyPdf/

    and http://sourceforge.net/search/?q=Python+PDF

    Oops, I now see that version 2 is to support many aspects of PDF's in the product.

  • edited March 2011

    Hi JDL,

    I'm not sure where you're picking up your supported feature list for v2 from, but I'm afraid there won't be any support for displaying PDF's. These are the actual planned features and implemented features.

    There are a number of python libraries for PDF's, but sadly most of them are more geared towards creating them rather than displaying them via an API which is what we need. Cross platform support is the main issue.

    I did try to add support for pdf's some time ago, but sadly the pypoppler-qt4 library didn't have any Windows builds which made it difficult. I did manage to get it working, but had fears about being able to support it going forwards. There does appear now to be a python-poppler-qt4 library on the scene too, but again Windows support looks to be lacking at present.

  • Ok what the heck we are time travelling.   2015 is not the current year clock is out on server.

    Gushie how big of dependences are we allowed to add.   I know of items that can spit out images of PDF that are cross platform.  They are all based around Ghostscript.

    Ghostscript  and imagemagick are all platforms.   All can be order turn pdf into images by command line.  Imagemagick and ghostscript do have python bindings.

    Gushie the smallest I have here is Ghostscript.   Yes you lose the PDF transitions between slides.

    Currently supported is more than 1 program to open Powerpoint.   Ghostscript or Imagemagick could provide the base functionality.

    Poppler could be a extra on Linux and OS X.  Then on windows you have adobe reader active x control and other windows readers active x controls.

    In fact a useful feature would be the option to add image groups based on output from a command line so format converters can be used.

    gs -dNOPAUSE -sDEVICE=jpeg -r144 -sOutputFile=p%03d.jpg file.pdf

    It can be massively tweaked for quality and color settings and other things.

    That is the ghostscript PDF to image converter command line.   Imagemagick also has a command line.     Main reason todo both is Imagemagick can be simpler to install on OS X.

    The other thing ghostscript does support XPS and some other horrible items as well.

    Gushie I don't see cross platform as a major blockage.   Yes there are a lot of python libraries geared to creating pdf and not a lot to displaying.   Ghostscript and Imagemagic are the most common for printing and for website usage.    Support command line version or/and abi versions of those and base functionally will be set.
  • i wonder if you could add support for an external application that could run pdf files. like you do with powerpoint, libreofice, and vlc atm. 

    you could use msoffice, libroffice, both cross platform.   or on windows the free powerpoint viewer and on mac preview.  
  • Hi,

    I'm actually working on a branch that adds PDF support, using either mupdf or ghostscript. Unfortunately it is not ready for merging yet and I don't have a lot of time at the moment to work on it, but the branch is available here for anyone who wants to take a look: https://code.launchpad.net/~tomasgroth/openlp/mupdf

    Best regards,
    Tomas
Sign In or Register to comment.