Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #30592
| Newsgroups | comp.lang.javascript |
|---|---|
| Date | 2016-06-01 07:26 -0700 |
| References | <5tidnXbZfc8jfNbKnZ2dnUU7-aHNnZ2d@westnet.com.au> |
| Message-ID | <f8615412-e7b3-4be5-8744-a45de98957f7@googlegroups.com> (permalink) |
| Subject | Re: PDF to call function |
| From | "Michael Haufe (TNO)" <tno@thenewobjective.com> |
On Monday, May 30, 2016 at 1:46:28 AM UTC-5, Andrew Poulos wrote: > I'll be needing to do some coding of PDF documents that are viewed in a > web page so I've just started looking into what it can and can't do. > > If I have a function in the "hosting" web page is it possible to call > that function from within the PDF assuming the PDF is being viewed using > the latest Adobe Acrobat Reader? Generally you can't assume how the PDF is going to be viewed, and vice-versa the browser generally doesn't know how the PDF is being rendered (unless you are explicitly using <object> tag with a fixed CLSID [1]) In the latter case you then have to worry about browser security restrictions. Assuming you're past all of that, there is an API available you may be able to use, but I've little experience with using it myself [2] [1] Example: <object id="pdf" classid="clsid:CA8A9780-280D-11CF-A24D-444553540000" width="1024" height="600"> ... </object> [2] <http://www.adobe.com/content/dam/Adobe/en/devnet/acrobat/pdfs/js_api_reference.pdf>
Back to comp.lang.javascript | Previous | Next — Previous in thread | Find similar | Unroll thread
PDF to call function Andrew Poulos <ap_prog@hotmail.com> - 2016-05-30 16:46 +1000
Re: PDF to call function Andrew Poulos <ap_prog@hotmail.com> - 2016-05-30 16:56 +1000
Re: PDF to call function "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2016-05-30 10:48 +0200
Re: PDF to call function Osmo Saarikumpu <osmo@weppipakki.com> - 2016-05-30 18:21 +0300
Re: PDF to call function Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2016-05-30 19:55 +0200
Re: PDF to call function Luuk <luuk@invalid.lan> - 2016-05-30 19:56 +0200
Re: PDF to call function "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2016-06-01 07:26 -0700
csiph-web