I am trying to convert from HTML to PDF using below code but i am getting PDF file without contents and getting AsposeBaseException also ,
Please find the attached HTML file(htmlex.zip).
Please send the source code(JAVA) if u have..ASAP
try{
Pdf pdf = new Pdf();
File helloHtml=new File("c:/temp/htmlex.html");
pdf.bindHTML(new FileInputStream(helloHtml),helloHtml.toURL());
pdf.save(new FileOutputStream(new File("c:/temp/HtmlExample.pdf")));
}catch(java.io.IOException ioe){
System.out.println(ioe.getMessage());
}catch(AsposeBaseException e){
System.out.println(e.getMessage());
}
Reagrds
Ramesh.K