I am trying to send a message from a html page to an embedded PDF by using hostContainer.postMessage API from Acrobat Javascript API.
This works in IE9 but it does not work in Chrome and Firefox.
I have tried by disabling their own PDF viewer and enabling acrobat reader and still it does not work.
Does anyone face this issue?
Thanks
hostContainer.postMessage posts from active script (running in adobe reader activeX) to the the javascript running in browser. you saying you want it the other way around...
however if you want to post from within the active script running in pdf reader activex to the javascript runing in browser here's two sources that could help you
Get the current page in PDF Java Web
pdf object.messagehandler onMessage not working in IE
personally I manage to make it work in IE but not in Chrome nor in FF.
Related
I am trying to use the ACR122U NFC Reader with the WebHID API but I cannot seem to get it to be found by Chrome 91 Desktop on both Linux nor Windows.
I know the browser is seeing the reader from chrome://usb-internals showing me this screen:
The two pieces of code that I have tried so far is here seen through the Inspect Element tools in the script tag.
The VendorID and ProductID in the scripts match that which Chrome can recognise it through, so I'm not sure why it is not working for this.
The only popup dialog that I have gotten the reader to appear within is the Chrome NFC WebUSB but I cannot use that API as it implements a protected class, which is why I am using WebHID as the alternative in hopes it may work.
How do I correct my code to allow Chrome to recognise this device; what am I missing?
I was able to control the ACR122U NFC Reader through WebUSB. See the library I've updated at https://github.com/beaufortfrancois/chrome-nfc
What is not working for you?
I think this won't work because ARC122U NFC Reader doesn't implement the HID protocol. According to the product page, it uses the USB CCID protocol.
My requirement is very simple but unable to get the solution.I am working with angularjs and java application.
I want to read the PDF document stored in local drive and display on the webpage and should work in IE and chrome.
I have tried different approaches using PDF.js, Jsoup.jar and iTextAPI.jar,but still could not able to succeed displaying on webpage both in IE and chrome.
Any suggestions would be of great help. I want to know an API which can be used to read the PDF from local drive and show on the webpage(should work on IE and chrome).
I have tried this read the pdf and display in IE, but could not able to show PDF in IE. No errors are shown on the console.
I am trying to debug javascript code inside a pdf using Internet Explorer o Firefox but i am not able to see the code to debug. Picture
Locally I can debug it but I need to do it inside a browser because a java application sends data to the pdf form.
I am using ie 11 and adobe acrobat pro 9. I can see the console but not the javascript console so i can not debug it. Does anyone knows how to configure to see the javascript code in order to debug it.
Acrobat/PDF debugging is only possible when the document runs in Acrobat, and it is not possible under the browser.
I try to understand of how building an add-on for chrome and firefox web browser,
The idea is to display a notification or popup window on the page that the user open after fetch the title from JSON file or the user select the title of the website (I do not know what the better,advice me ! )and it's in JSON file
Building addons for firefox and chrome together is a little bit tricky.
In Chrome you can start writing your extension using only JavaScript.
For firefox, you have some choices to work with your plugin:
Using the jpm sdk for firefox addon developing. In this link you can find the get started plugin example, OR
Using firefox web extensions, which using no sdk and has similar API to chrome but it is new to firefox and they are not fully implemented.
I have linked to the Jquery library at google in my header, and my local copy of the Galleria Javascript file - as the instructions on the Galleria website said to do.
The code functions perfectly in Chrome. However, when attempting to view the site in IE9 I am faced with "Internet Explorer restricted this webpage from running scripts or ActiveX controls." This is preventing (without user input) the Javascript/Jquery/Galleria stuff to function; it is also prevented an embedded Youtube video from displaying.
What am I missing - plenty of other websites use these functions and I don't get IE giving this message. What do I need to add or change?
I am viewing the website from my PC - it is stored locally at the moment.
Cheers!
This is happening because you are running your website locally. You can be sure that this will not happen once you upload it to a webserver.
You can also run a local webserver. I can recommend WAMP:
http://www.wampserver.com/en/