mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-18 07:23:08 +00:00
PDF generation is not consistent to the expected filename so try other versions of filename
This commit is contained in:
@@ -240,6 +240,11 @@ public class XPDF2Thumbnail extends MediaFilter
|
||||
{
|
||||
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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user