Hi Stuart,

Pdftoppm is indeed in /usr/bin, along with the other XPDF tools, pdfinfo and 
pdftotext.  I ran /usr/bin/pdftoppm manually on a test file, and it converted 
my test pdf to a ppm successfully.  But for some reason, Java's giving those 
errors when running the command.  Is there some other path I need to set for 
Java to find it, besides in the dspace.cfg file and the pom.xml in dspace-api?

Cheers,

Eric


On 10/20/09 4:32 PM, "Stuart Lewis" <s.le...@auckland.ac.nz> wrote:

Hi Eric,

When you installed XPDF, did it install the following application:

  - /usr/bin/pdftoppm

The error message suggests that the script is missing.

Thanks,


Stuart Lewis
IT Innovations Analyst and Developer
Te Tumu Herenga The University of Auckland Library
Auckland Mail Centre, Private Bag 92019, Auckland 1142, New Zealand
Ph: 64 9 373-7599 x81928
http://www.library.auckland.ac.nz/

On 21/10/2009, at 3:51 AM, Kurzenberger, Eric wrote:

> Just an update to this issue, it looks like there's a section
> missing from the DSpace documentation.  I believe this dependency
> needs to be added to the pom.xml in the dspace-api directory:
>
>    <dependency>
>        <groupId>com.sun.media</groupId>
>        <artifactId>jai_imageio</artifactId>
>        <version>1.0_01</version>
>     </dependency>
>
> Unfortunately, this doesn't fix my issue: I'm still getting the
> "java.io.IOException: Cannot run program "/usr/bin/pdftoppm ":
> java.io.IOException: error=2, No such file or directory" errors when
> running filter-media.
>
> Anyone have any ideas?  I've gone through the other installation
> steps in the documentation repeatedly, to no avail.
>
> Cheers,
>
> Eric
>
>
>
>
> On 10/19/09 9:44 AM, "Eric Kurzenberger"
> <eric.kurzenber...@yale.edu> wrote:
>
> Hello,
>
> I'm running DSpace 1.5.2 XMLUI on a Linux system, and I've been
> trying to install the XPDF tools for PDF thumbnails, following the
> recommendation of a user on this list.  I followed the instructions
> to install the tools in the 1.5.2 documentation and believe I've
> successfully installed the jai_imageio jar and set the configuration
> correctly.  But when I try to run the filter-media command, I'm
> getting errors with pdfoppm.
>
> The documentation mentions that a POM in the dspace-api module needs
> to be edited, but it doesn't specify which POM, and what element
> needs to be added.
>
> I've included a sample of the errors below.  Thanks for any help you
> can provide.
>
> Error:
>
> ERROR filtering, skipping bitstream:
>
>    Item Handle: 10538/148
>    Bundle Name: ORIGINAL
>    File Size: 6898424
>    Checksum: 4637dd47354393dc87f3d2b881ec311d (MD5)
>    Asset Store: 0
> java.io.IOException: Cannot run program "/usr/bin/pdftoppm ":
> java.io.IOException: error=2, No such file or directory
> java.io.IOException: Cannot run program "/usr/bin/pdftoppm ":
> java.io.IOException: error=2, No such file or directory
>    at java.lang.ProcessBuilder.start(ProcessBuilder.java:459)
>    at java.lang.Runtime.exec(Runtime.java:593)
>    at java.lang.Runtime.exec(Runtime.java:466)
>    at org.dspace.app.mediafilter.XPDF2Thumbnail.getDestinationStream
> (XPDF2Thumbnail.java:251)
>    at org.dspace.app.mediafilter.MediaFilterManager.processBitstream
> (MediaFilterManager.java:668)
>    at org.dspace.app.mediafilter.MediaFilterManager.filterBitstream
> (MediaFilterManager.java:570)
>    at org.dspace.app.mediafilter.MediaFilterManager.filterItem
> (MediaFilterManager.java:520)
>    at org.dspace.app.mediafilter.MediaFilterManager.applyFiltersItem
> (MediaFilterManager.java:488)
>    at
> org.dspace.app.mediafilter.MediaFilterManager.applyFiltersAllItems
> (MediaFilterManager.java:427)
>    at org.dspace.app.mediafilter.MediaFilterManager.main
> (MediaFilterManager.java:359)
> Caused by: java.io.IOException: java.io.IOException: error=2, No
> such file or directory
>    at java.lang.UNIXProcess.<init>(UNIXProcess.java:148)
>    at java.lang.ProcessImpl.start(ProcessImpl.java:65)
>    at java.lang.ProcessBuilder.start(ProcessBuilder.java:452)
>
>
> I have verified that the XPDF tools, including pdftoppm, are in the /
> usr/bin directory.
>
> Cheers,
>
> Eric
>
> --
>
> Eric Kurzenberger
> Digital Media Coordinator
> Yale School of Architecture
> 180 York St.
> New Haven, CT 06511
> T: 203.436.4176
> F: 203.432.7175
>
>
>
>
>
> ------------------------------------------------------------------------------
> Come build with us! The BlackBerry(R) Developer Conference in SF, CA
> is the only developer event you need to attend this year. Jumpstart
> your
> developing skills, take BlackBerry mobile applications to market and
> stay
> ahead of the curve. Join us from November 9 - 12, 2009. Register now!
> http://p.sf.net/sfu/devconference
> _______________________________________________
> DSpace-tech mailing list
> DSpace-tech@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/dspace-tech
>
>
> ------------------------------------------------------------------------------
> Come build with us! The BlackBerry(R) Developer Conference in SF, CA
> is the only developer event you need to attend this year. Jumpstart
> your
> developing skills, take BlackBerry mobile applications to market and
> stay
> ahead of the curve. Join us from November 9 - 12, 2009. Register now!
> http://p.sf.net/sfu/devconference
> _______________________________________________
> DSpace-tech mailing list
> DSpace-tech@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/dspace-tech





------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
  • [Dspac... Kurzenberger, Eric
    • R... Kurzenberger, Eric
      • ... Thornton, Susan M. (LARC-B702)[RAYTHEON TECHNICAL SERVICES COMPANY]
      • ... Stuart Lewis
        • ... Kurzenberger, Eric
          • ... Stuart Lewis
            • ... Kurzenberger, Eric
              • ... Van Ly
                • ... Kurzenberger, Eric
          • ... Larry Stone

Reply via email to