I encountered this problem when using word to pdf, very bad, please friends to help me look at it.
public static boolean wordToPdf(String wordPath, String pdfPath)
{
FileOutputStream os = null;
try
{
File file = new File(pdfPath);
os = new FileOutputStream(file);
Document doc = new Document(wordPath);
doc.save(os, 40);
return true;
}
catch (Exception e)
{
log.info("error ===" + e.getMessage());
e.printStackTrace();
}
finally
{
if (os != null)
{
try
{
os.flush();
os.close();
}
catch (IOException var12)
{
var12.printStackTrace();
}
}
}
return false;
}
error === Cannot find resource /resources/Blank.doc