I am working on an eclipse based application wherein I need to preview pdf documents as part of a functionality. As of now clicking on preview button opens a prompt for saving the pdf but it does not directly open the document in the required window. Is there any way where I can add any arguments/Plugins in the XULRunner or the application's ini file so that the pdf can be opened in the window itself by default ? (I am using Red Hat Linux 6.5 (Santiago))
How can I open pdf files in SWT browser window while using XULRunner?
571 Views Asked by Knight of the Vale At
1
There are 1 best solutions below
Related Questions in ECLIPSE
- I need the BIRT.war that is compatible with Java 17 and Tomcat 10
- GUI window is not appearing
- I am trying to run java application in Eclipse, When I try to do Run > Run as > Java Application it starts to show little processing but nothing happe
- Migrating Google App Engine - Eclipse Java 8
- Unable to compile the class for JSP in tomcat 8.5.95
- Eclipse + CMake: Eclipse index unable to resolve header files
- Commit Each Change from Eclipse to GitHub as a different Branch
- Using Eclipse Maven project, import new version of a class from a jar file created from another Maven project
- Is the Eclipse RCP "Window > Show View" menu predefined somewhere
- To enable syntax highlighting with color for JBehave stories in Eclipse
- Eclipse: "package...does not exist" when building a Maven package that references a class in another project
- TestNG update related issue
- How to print a value by comparing 2 fields inside JSON - RestAssured
- How to build using Eclipse Tycho
- "Cannot be resolved as a type" problem with Java
Related Questions in ECLIPSE-PLUGIN
- Problems setting up product with plugins using AspectJ on Eclipse version 2024-03
- How to make my own custom checkstyle checks available in eclipse checkstyle plug-in
- Is it possible to set the default initial startup size of an Eclipse RCP application?
- How can I download the raw metamodels from my EMF registry?
- Eclipse plug in not discovered from the site where i uploaded my 'update site project' directory
- org.apache.httpcomponents.httpclient thows Unresolved requirement error when my eclipse RCP is lauched
- Creating an Eclipse RCP application installer using InstallShield
- How to implement custom hover for the IMarker in Eclipse plugin development?
- Exclude specific jar from p2 repo in my eclipse plugin build
- How to Resolve Conflicting Lifecycle Mapping in Eclipse for Tycho and PDE
- Link a Acceleo query to a Java generic function
- Eclipse is using https instead of http
- Description Resource Path Location Type make: *** [main.o] Error -1073741502 taha C/C++ Problem
- How to programmatically remove the "Detach" context menu item from an Eclipse RCP view toolbar?
- remote debugging application code(eclipse-test-plugin) in eclipse IDE via maven build not working
Related Questions in SWT
- SWT Popup Context Menu width issue
- Is there a way to check the Mac version using Platform.OS on Windows?
- SWT button has border by default
- SWT Progress Bar
- Java 16 app : ignore windows zoom/scaling
- How to programmatically remove the "Detach" context menu item from an Eclipse RCP view toolbar?
- Gradient color for cells in NatTable using Style() and not CSS
- How can I run Eclipse SWT applications in a browser as WebAssembly?
- SWT.SetData listener not listening when calling table.redraw() in Java SWT project
- How to change the size of Checkbox within the Virtual Table column in eclipse SWT?
- How to add Checkbox to table column Header in SWT Java?
- Unreliable Clipboard Event Handling in Java Program
- SWT browser in Eclipse unable to access localStorage
- Underline below the name of CTab
- Java, SWT how to make RowLayout working within a ScrolledCompositite?
Related Questions in XULRUNNER
- org.eclipse.swt.SWTError: No more handles [MOZILLA_FIVE_HOME='/usr/lib/firefox'] (java.lang.UnsatisfiedLinkError: Could not load SWT library. Reasons
- GeckoFx60 messing with Outlook decimals
- Instead of displaying pdf files in Red Hat Linux, the SWT browser opens a save prompt. Is there any way to handle this?
- How can I open pdf files in SWT browser window while using XULRunner?
- Minimal Browser - HTML, CSS, JS or Wrapper?
- C# - Windows forms with Gecko and xul
- C/C++ WIN32 - Gecko - Integrate web browser
- Xunit console runner hangs while using reportportal option
- How detect if a webpage is opened by XUL <browser> tag?
- Geckofx-Core - System.DllNotFoundException
- XPCOM error in maven SWT project on windows 10 64 bit
- Embedding Firefox/Gecko as a control into .Net (forms/wpf) general beginner questions getting started
- Can XULRunner browser delete local file?
- Forcing Xulrunner to ignore X-Frame-Options
- Desktop application using Firefox WebExtensions
Related Questions in RHEL6
- How to execute script after system reboot by using kickstart
- Populate Python dictionaries from .ini in RHEL5
- How to read file containing a string and finding it in a directory
- How to append a line at the end of /etc/sudoers file using shell script (without using pssh tool)
- Installing R 3.3.2 in RHEL 6.8 without yum
- Move PHP binaries to another server
- lk-sctp sending ABORT while association set-up
- python 2.7 + RHEL 6.5 + Shapely-1.4.4 : MemoryError
- How do I compile RHEL5 compatible shared library from RHEL6 machine with GCC 4.4.6?
- Tesseract not working when called from java application on redhat 6.2 box
- Docker 1.3 fails to start on RHEL6.5
- Torque installation on RHEL 6.5
- Force core dump on RHEL 6
- Installing R on RHEL 6
- ImportError: No module named ansible after installing Ansible 2.9 via PIP
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
The following applies to Linux only. First of all, your SWT version must be < Eclipse 4.8, see https://www.eclipse.org/swt/faq.php#browserlinux
If your SWT meets this criterion, there's 2 options I know of:
Add plugin nppdf.so to your xulrunner install, needs Adobe Reader "acroread" executable with matching version on the PATH (maybe acroread version can be > nppdf version, not sure about that)
Use pdf.js: I got it to work using SWT from Eclipse 3.8.2, xulrunner 10.0.4esr and pdf.js < 2, e.g. 1.10.100.
UPDATE: this combination of versions has a problem with images in pdf-files, so I had to upgrade to: SWT 4.4 and xulrunner 24. pdf.js 1.10.100 still worked, 2.x would now also be usable, though.
In your xulrunner install, create file defaults/preferences/prefs.js (xulrunner.js also works), containing this line:
To view a pdf file, point your swt-embedded xul-runner to
This may apply:
https://mozilla.github.io/pdf.js/getting_started/#download
Sources: