I'm trying to open a PDF file with Java and jump to a specific page. Here is my code to open a PDF file:
if (Desktop.isDesktopSupported()) {
try {
File file = new File("file.pdf");
Desktop.getDesktop().open(file);
} catch (IOException ex) {
System.err.println('error:' + ex);
}
}
Can someone help me ?