String originalPDF = "C:\\wwwww.pdf";
int index = originalPDF.lastIndexOf(".", originalPDF.length());
String misignDocName = originalPDF.substring(0, index) + "_ddd.pdf";
try {
File srcYLPPDF = new File(originalPDF);
File destYLPPDF = new File(misignDocName);
if(srcYLPPDF.exists()){
System.out.println("-----------");
}
if(!destYLPPDF.exists()){
System.out.println("-----------");
}
if (srcYLPPDF.exists() && !destYLPPDF.exists()) {
FileUtils.copyFile(srcYLPPDF, new File(misignDocName));
}
} catch (IOException e) {
e.printStackTrace();
}