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 11:01] by Moderator