Monday, August 30, 2010

Load/Open PDF File in Java

August 30, 2010

Try the following code to load PDF file in your java code:

public class loadPDF {

public static void main(String[] args) throws Exception {
Process p =
Runtime.getRuntime()
.exec("rundll32 url.dll,FileProtocolHandler C:/[directory]/jdbc-mysql.pdf");
p.waitFor();
}
}

0 comments:

Post a Comment

 

© 2017 Zul. All rights resevered. Designed by Templateism

Back To Top