Commit ce642e40 authored by msharma's avatar msharma

PDF to image converted


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@95058 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 82be818a
...@@ -377,11 +377,11 @@ private String pdftoimage(String filename) throws IOException ...@@ -377,11 +377,11 @@ private String pdftoimage(String filename) throws IOException
System.out.println("File prefix name ["+filePrefix+"]"); System.out.println("File prefix name ["+filePrefix+"]");
PdfDecoder decode_pdf = new PdfDecoder(true); PdfDecoder decode_pdf = new PdfDecoder(true);
FontMappings.setFontReplacements(); //FontMappings.setFontReplacements();//Commented by manoj dtd 15/05/2014
decode_pdf.openPdfFile(CommonConstants.JBOSSHOME+"/server/default/deploy/ibase.ear/ibase.war/webitm/tempDoc/"+filename); decode_pdf.openPdfFile(CommonConstants.JBOSSHOME+"/server/default/deploy/ibase.ear/ibase.war/webitm/tempDoc/"+filename);
decode_pdf.setExtractionMode(0, 1f); //do not save images //decode_pdf.setExtractionMode(0, 1f); //do not save images//Commented by manoj dtd 15/05/2014
BufferedImage img=decode_pdf.getPageAsImage(1); BufferedImage img=decode_pdf.getPageAsImage(1);
decode_pdf.closePdfFile(); decode_pdf.closePdfFile();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment