p:media does not work in FireFox, but it works in Chrome and Opera - pdf

p:media component does not work in FireFox, but it works in Chrome and Opera.
I'm trying to display a PDF document, but nothing is displayed in FireFox.
Although the component in the tutorial is displayed for me: https://www.primefaces.org/showcase/ui/multimedia/media.xhtml
<p:media value="/resources/pdf/mypdf.pdf" width="100%" height="600px">
Your browser can't display pdf,
<h:outputLink value="/resources/pdf/mypdf.pdf">click</h:outputLink> to download pdf instead.
</p:media>

Related

Edge Browser: Link From PDF Not Opening a New PDF File

I installed an adobe acrobat extension in Edge browser. My link is relative path. I set up all these options with this extension:
In my PDF file, the embed link is a button.
After the click, it did not open a PDF file in Edge, but works fine in Chrome and Opera. What do I do to make it work in Edge?
(UPDATE)
This is how Opera and Google Chrome show my URL after I click a button in the PDF, which opens a PDF file.
//example.azurewebsites.net/CANGC/Process/off-site-facility-management/6_1-Chemistry/Step-Descriptions/6-1-1/6-1-1-1.pdf
This is how Edge shows the URL after the click, which cannot locate the file.
//example.azurewebsites.net/CANGC/Process/off-site-facility-management/6_1-Chemistry/Flow-Chart/6.1%20Ultrasonic%20Chemistry%20Management/2.%20Process%20Design/2b.%20Step%20Descriptions/1%20-%20Chemical%20Inventory/6-1-1-1.pdf
Edge rewrote the URL longer, forcing the path wrong.
What's funny is that I put the same URL into the Edge Browser, which opens that PDF file. The extensions do not solve my problem. Is there another solution out there?

toolbar=0 not working for firefox while hidding the toolbar of pdf so How to hide pdf toolbar in firefox

I want to hide pdf toolbar from browser so i used toolbar=0 but it did not work on firefox but it worked in google chrome,
so how to hide pdf toolbar in firefox.
i used this url to hide toolbar on firefox browser
path-of-pdf#toolbar=0
i have tried this also:
abc.pdf#toolbar=0&scrollbar=0&navpanes=1
but still not working in firefox.
so please tell me how to hide the toolbar in firefox.

Open PDF in gwt frame with highlighted words

how can i open pdf with highlighted words on gwt frame using java or javascript?
i passed url link to the iframe and it loads the pdf but there is no highlight
gwt version 2.5.1
firefox portable v.24
This problem can be solve by changing or installing pdf viewer plugin adobe acrobat reader to the browser.
The pdf viewer of the frame depends on the browsers pdf viewer
setup plugins for chrome
http://blogs.adobe.com/acrolaw/2011/12/get-reader-or-acrobat-to-work-in-chrome-compact-pdf-output-from-chrome/
to test, use this url example to the browser with adobe acrobat plugin
http://www.adobe.com/content/dam/Adobe/en/devnet/acrobat/pdfs/pdf_open_parameters.pdf#search=word
It works on chrome 42 with adobe reader plugin...

IE 11 displaying some strange characters in Dojo content pane

I am using Dojo Accordian Container, the content panes inside the accordian are just displaying text. Everything works fine in firefox, chrome except for IE 11. Below are snapshots of the issue
When I do something on the browser, like say If I open developer tools, the correct text gets displayed
Have you tried using this in your HTML??
<META HTTP-EQUIV="X-UA-Compatible" content="IE=Edge" />
I've had many problems with IE and dojo in the past. Firefox and Chrome always seem to work perfectly. It's just a stab in the dark but the line above fixed many similar problems for me.

In Vaadin PDF does not work in popup Window

I am trying to display a PDF in a popup window using Vaadin 6.6.2 and the code as shown in this blog:
http://jcraane.blogspot.com/2010/09/printing-in-vaadin.html
The problem I have is that whenever I close the Window containing the PDF it always hangs the current browser tab in IE 9.
I have tested this in Safari, Firefox, and IE 8 and its works fine. I also know that the problem is related to the embedded PDF as I have tried replacing the embedded PDF with a Vaadin Label and then the popup window closes fine in IE9.
I had a similar problem in Firefox 3.x, I solved it by upgrading to Firefox 4, and upgrading the Adobe plugin.
It seems to me the problem is on the browser/plug-in side.
If you are stuck with that browser/version, try just upgrading the plugin if that's not already on the latest version.