|
Re: How to open PDF from RCP and navigate in it [message #987443 is a reply to message #987072] |
Mon, 26 November 2012 16:00 |
Marin Aldimirov Messages: 3 Registered: November 2012 |
Junior Member |
|
|
For now I found SumatraPDF, which is a program much like Adobe Reader, but has a better control through command-line arguments. I can use it with the following code:
Runtime rt = Runtime.getRuntime();
try
{
rt.exec("<path>\SumatraPDF.exe -page 150 -zoom \"fit content\" -reuse-instance <path>file.pdf");
}
catch (IOException e)
{
// TODO Auto-generated catch block
e.printStackTrace();
}
, but that just opens it as a separate program.
I would like to open the PDF as an additional view inside my RCP project and have the same functionality. For now I haven't found a good clear and easy step-by-step solution on the net.
Any suggestions would be appreciated!
[Updated on: Mon, 26 November 2012 16:01] Report message to a moderator
|
|
|
Powered by
FUDForum. Page generated in 0.07692 seconds