I am trying to associate some user documents with my Java Swing application. User documents are pdf, and I would like to be able to click on a button in my application that opens some kind of PDF rendering to display my userdoc.pdf.
I do not want to use the runtime exec command
I tried the following with little success -
pdfRenderer - this does not seem to work for the current version of pdf files (it seems old pdf files are needed)
acrobat viewer - I keep getting font errors (the document is displayed, but every time I go to a new page I get an error message)
JPedal pdfHelp - Sounds great, and if it works, it will be better for me. But for some reason I cannot open any file here. There is no PDF file that I load in the window (the pdfHelp panel contains a list of pdf files, as promised, but when I click one of them and say "OpenPDF", I just get a progress bar and the file does not load, I tried several files on this and checked file permissions)
JPedal SimpleViewer - While this seems like the most promising. I would like to remove some functions of this viewer, although I can not edit xml for this. When I edit xml, I seem to get XML parsing errors.
Has anyone done something like this that worked? help me please
PS. I need this to work on Linux machines (IcePDF seems to work only for Windows). I would really prefer something free!
source share