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:fabio.kep...@gmail.com]
Sent: Friday, August 14, 2009 11:56 AM
To: dspace-tech@lists.sourceforge.net
Subject: [Dspace-tech] Fwd: xpdf question in DSpace 1.5.1
---------- Forwarded message ----------
From: Fabio N. Kepler <fabio.kep...@gmail.com<mailto:fabio.kep...@gmail.com>>
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]"
<susan.m.thorn...@nasa.gov<mailto:susan.m.thorn...@nasa.gov>>
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]
<susan.m.thorn...@nasa.gov<mailto:susan.m.thorn...@nasa.gov>> 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: susan.m.thorn...@nasa.gov<mailto:susan.m.thorn...@nasa.gov>
------------------------------------------------------------------------------
_______________________________________________
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net<mailto:DSpace-tech@lists.sourceforge.net>
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
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech