A voir également:
- Lancer Acrobat reader dans une fonction Java
- Adobe acrobat - Guide
- Waptrick java football - Télécharger - Jeux vidéo
- Jeux java itel football - Télécharger - Jeux vidéo
- Fonction si et - Guide
- Télécharger adobe reader 9.1 français gratuit - Télécharger - PDF
1 réponse
Pour ceux qui comme moi ont la même question, cela fonctionne très bien.
public class ShowPDF {
public static void main(String[] args) throws Exception {
Process p =
Runtime.getRuntime()
.exec("rundll32 url.dll,FileProtocolHandler c:/pdf/mypdf.pdf");
p.waitFor();
System.out.println("Done.");
}
}
trouvé sur le site
https://www.rgagnon.com/javadetails/java-0014.html
public class ShowPDF {
public static void main(String[] args) throws Exception {
Process p =
Runtime.getRuntime()
.exec("rundll32 url.dll,FileProtocolHandler c:/pdf/mypdf.pdf");
p.waitFor();
System.out.println("Done.");
}
}
trouvé sur le site
https://www.rgagnon.com/javadetails/java-0014.html