I displayed outPrefix and it is trying to write to /var/tmp, however I just 
found this in the dspace.log:

2009-08-14 16:05:28,638 ERROR org.dspace.app.mediafilter.XPDF2Thumbnail @ PDF 
conversion proc failed, exit status=9, file=/var/tmp/DSfilt63853.pdf

________________________________
From: Fabio N. Kepler [mailto:[email protected]]
Sent: Friday, August 14, 2009 3:41 PM
To: Thornton, Susan M. (LARC-B702)[RAYTHEON TECHNICAL SERVICES COMPANY]
Cc: [email protected]
Subject: Re: [Dspace-tech] Fwd: xpdf question in DSpace 1.5.1

Hi,

In my system the temporary file gets created in /tmp. When I was getting this 
error, I took a look at the /tmp directory and saw some "prevu" + lots of 
numbers + "-001.ppm" files. Check your /var/tmp or /tmp directories for 
something similar.

Or try using something like
log.info<http://log.info>("XPDF2Thumbnail: outPrefix: " + outPrefix);
before the line
File outf = new File(outPrefix+"-001.ppm");
and then check dspace/log/dspace/log to see where the temporary file is trying 
to be created.

And/or change the lines
File outPrefixF = File.createTempFile("prevu","out");
String outPrefix = outPrefixF.toString();
so as to create a temporary file in a location of your choice. I think 
something like the below should work:
File outPrefixF = new File("/tmp/prevu");
String outPrefix = outPrefixF.toString();


I forgot to mention that I'm using DSpace 1.5.2. Hope it doesn't make any 
difference.

Fabio

On Fri, Aug 14, 2009 at 16:22, Thornton, Susan M. (LARC-B702)[RAYTHEON 
TECHNICAL SERVICES COMPANY] 
<[email protected]<mailto:[email protected]>> wrote:

Unfortunately, no it's not working.  :(



Here is the output from filter-media:



The following MediaFilters are enabled:

Full Filter Name: org.dspace.app.mediafilter.XPDF2Text

org.dspace.app.mediafilter.XPDF2Text

Full Filter Name: org.dspace.app.mediafilter.XPDF2Thumbnail

org.dspace.app.mediafilter.XPDF2Thumbnail

SKIPPED: bitstream 558073 because 'CA048879.pdf.txt' already exists

ERROR filtering, skipping bitstream:



        Item Handle: 2121/322310

        Bundle Name: ORIGINAL

        File Size: 676967526

        Checksum: 6726b1fe79d8d56b398f1613108d956c (MD5)

        Asset Store: 2

javax.imageio.IIOException: Can't read input file!

javax.imageio.IIOException: Can't read input file!

        at javax.imageio.ImageIO.read(ImageIO.java:1275)

        at 
org.dspace.app.mediafilter.XPDF2Thumbnail.getDestinationStream(XPDF2Thumbnail.java:233)

        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.main(MediaFilterManager.java:379)

$



Am I correct that it's trying to write a temporary file to /var/tmp?  In 
Googling this error, I saw some talk about it might be either a permissions or 
space problem???



Thanks for your help,

Sue



________________________________

From: Fabio N. Kepler 
[mailto:[email protected]<mailto:[email protected]>]
Sent: Friday, August 14, 2009 2:40 PM

To: Thornton, Susan M. (LARC-B702)[RAYTHEON TECHNICAL SERVICES COMPANY]
Cc: [email protected]<mailto:[email protected]>
Subject: Re: [Dspace-tech] Fwd: xpdf question in DSpace 1.5.1



Hi Susan,

Yes, you're right. There were five zeros and a one, and I changed it to two 
zeros and a one. Sorry for the inaccuracy.

Has it worked for you?

Fabio

On Fri, Aug 14, 2009 at 15:35, Thornton, Susan M. (LARC-B702)[RAYTHEON 
TECHNICAL SERVICES COMPANY] 
<[email protected]<mailto:[email protected]>> wrote:

Hi Fabio,

     How many zeros are supposed to prefix the 1?  My XPDF2Thumbnail.java 
originally had five zeros and a one and I've changed it to two zeros and a one 
as follows:



Original line in XPDF2Thumbnail.java =    File outf = new 
File(outPrefix+"-000001.ppm");

New line in XPDF2Thumbnail.java      =    File outf = new 
File(outPrefix+"-001.ppm");



Is this correct??



Thanks,

Sue



________________________________

From: Fabio N. Kepler 
[mailto:[email protected]<mailto:[email protected]>]
Sent: Friday, August 14, 2009 11:56 AM
To: [email protected]<mailto:[email protected]>
Subject: [Dspace-tech] Fwd: xpdf question in DSpace 1.5.1



---------- Forwarded message ----------
From: Fabio N. Kepler <[email protected]<mailto:[email protected]>>
Date: Fri, Aug 14, 2009 at 12:53
Subject: Re: [Dspace-tech] xpdf question in DSpace 1.5.1
To: "Thornton, Susan M. (LARC-B702)[RAYTHEON TECHNICAL SERVICES COMPANY]" 
<[email protected]<mailto:[email protected]>>


Hi Susan,

I don't know if you have already solved this problem, but I ran into it 
yesterday. What I found out was that the 'pdftoppm' binary was converting 
'file.pdf' to 'file-001.ppm' instead of 'file-00001.ppm'. Strangely, even with 
the manual ('man pdftoppm') says the output is 'file-nnnnn.ppm', where nnnnn is 
the page number.

The solution was to change a line in XPDF2Thumbnail.java near the line 
reporting the error (in your case, 229). The line was

File outf = new File(outPrefix+"-00001.ppm");

and I changed it to

File outf = new File(outPrefix+"-001.ppm");


Hope this solves your problem, too.

Regards,

Fabio N. Kepler

On Thu, Jul 23, 2009 at 13:18, Thornton, Susan M. (LARC-B702)[RAYTHEON 
TECHNICAL SERVICES COMPANY] 
<[email protected]<mailto:[email protected]>> wrote:

Hi,

     I have successfully implemented xpdf pdftotext (replacing PDFBox) in 
DSpace 1.5.1.  It works GREAT and so far has filtered 100% of our documents, 
even the ones PDFBox found to be "unfilterable".  Now I'm trying to get 
pdftoppm to work and I'm getting this error:



Applying Media Filters

The following MediaFilters are enabled:

Full Filter Name: org.dspace.app.mediafilter.HTMLFilter

org.dspace.app.mediafilter.HTMLFilter

Full Filter Name: org.dspace.app.mediafilter.WordFilter

org.dspace.app.mediafilter.WordFilter

Full Filter Name: org.dspace.app.mediafilter.JPEGFilter

org.dspace.app.mediafilter.JPEGFilter

Full Filter Name: org.dspace.app.mediafilter.XPDF2Text

org.dspace.app.mediafilter.XPDF2Text

Full Filter Name: org.dspace.app.mediafilter.XPDF2Thumbnail

org.dspace.app.mediafilter.XPDF2Thumbnail

FILTERED: bitstream 443 and created 'CA029045.pdf.txt'

ERROR filtering, skipping bitstream:



        Item Handle: 2121/169228

        Bundle Name: ORIGINAL

        File Size: 2064225

        Checksum: 4216969d76a86e6c9c169bbe0a3cff7d (MD5)

        Asset Store: 0

javax.imageio.IIOException: Can't read input file!

javax.imageio.IIOException: Can't read input file!

        at javax.imageio.ImageIO.read(ImageIO.java:1275)

        at 
org.dspace.app.mediafilter.XPDF2Thumbnail.getDestinationStream(XPDF2Thumbnail.java:229)

        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.main(MediaFilterManager.java:379)

 Wrote Item: 2121/169228 to Index at Thu Jul 23 12:16:16 EDT 2009



 I think it is complaining because xpdf2Thumbnail needs to know where the input 
file is and where to put the output file(s)....??  Can anyone help with this?



Thanks,

Sue



Sue Walker-Thornton

ConITS Contract
NASA Langley Research Center
Integrated Library Systems Application & Database Administrator

130 Research Drive

Hampton, VA  23666

Office: (757) 224-4074
Fax:    (757) 224-4001
Pager: (757) 988-2547
Email:  [email protected]<mailto:[email protected]>





------------------------------------------------------------------------------

_______________________________________________
DSpace-tech mailing list
[email protected]<mailto:[email protected]>
https://lists.sourceforge.net/lists/listinfo/dspace-tech







------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
DSpace-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech
  • [Dspac... Thornton, Susan M. (LARC-B702)[RAYTHEON TECHNICAL SERVICES COMPANY]
    • [... Fabio N. Kepler
      • ... Thornton, Susan M. (LARC-B702)[RAYTHEON TECHNICAL SERVICES COMPANY]
        • ... Fabio N. Kepler
          • ... Thornton, Susan M. (LARC-B702)[RAYTHEON TECHNICAL SERVICES COMPANY]
            • ... Fabio N. Kepler
              • ... Thornton, Susan M. (LARC-B702)[RAYTHEON TECHNICAL SERVICES COMPANY]
                • ... Fabio N. Kepler

Reply via email to