Is it possible to open or create a PDF file in a Java desktop application just like we can create text file?
From my search I got that it is possible only with web java. Is that true?
Is it possible to open or create a PDF file in a Java desktop application just like we can create text file?
From my search I got that it is possible only with web java. Is that true?
To open an existing PDF file in the desktop default reader you can use the following code:
(needs Java 6)
You can not create PDF just like a normal Text file, you will need PDF Library to create one. Opening an existing PDF is possible like *a_horse_with_no_name* mentioned in his answer.
You can find some PDF Libraries here.
You can use iText to do this. Here is a nice tutorial.
There is an OS PDF plugin for Netbeans at http://www.jpedal.org/support_siNetBeans.php