Search code examples
eclipse-plugineclipse-rcp

Open pdf within rcp application as a separate view


My requirement is to open pdf files directly inside my RCP application as a separate view. Currently the files are listed in a tree in the explorer view on clicking of which opens the installed adobe reader. I want to open it inhouse . Please suggest.


Solution

  • Was able to load a PDF file within a SWT basic shell but it does not further allow to perform any other operation on it(zoom,select text, scroll etc..). The PDF basically shows up as a image(of the first page) & is not further interactive. Any suggestion how to get this done would be helpfull. For the sample SWT application to load a PDF I followed this link(used the program ID of acrobat reader instead of word from the registry) :

    https://github.com/eclipse-platform/eclipse.platform.swt/blob/master/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet262.java