Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge branch 'master' of github.com:LongsightGroup/DSpace

  • Loading branch information...
commit a9f3f7384ae274415000f339f323ab8041b8d595 2 parents 2f12c93 + 3549df7
@ottenhoff ottenhoff authored
View
5 dspace-api/src/main/java/org/dspace/app/mediafilter/XPDF2Thumbnail.java
@@ -240,6 +240,11 @@ public InputStream getDestinationStream(InputStream sourceStream)
{
Process pdfProc = Runtime.getRuntime().exec(pdfCmd);
status = pdfProc.waitFor();
+ if (!outf.exists()) outf = new File(outPrefix+"-00001.ppm");
+ if (!outf.exists()) outf = new File(outPrefix+"-0001.ppm");
+ if (!outf.exists()) outf = new File(outPrefix+"-001.ppm");
+ if (!outf.exists()) outf = new File(outPrefix+"-01.ppm");
+ if (!outf.exists()) outf = new File(outPrefix+"-1.ppm");
log.debug("PDFTOPPM output is: "+outf+", exists="+outf.exists());
source = ImageIO.read(outf);
}
Please sign in to comment.
Something went wrong with that request. Please try again.