Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #30578 > unrolled thread
| Started by | Andrew Poulos <ap_prog@hotmail.com> |
|---|---|
| First post | 2016-05-30 16:46 +1000 |
| Last post | 2016-06-01 07:26 -0700 |
| Articles | 7 — 6 participants |
Back to article view | Back to comp.lang.javascript
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
| From | Andrew Poulos <ap_prog@hotmail.com> |
|---|---|
| Date | 2016-05-30 16:46 +1000 |
| Subject | PDF to call function |
| Message-ID | <5tidnXbZfc8jfNbKnZ2dnUU7-aHNnZ2d@westnet.com.au> |
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? Andrew Poulos
[toc] | [next] | [standalone]
| From | Andrew Poulos <ap_prog@hotmail.com> |
|---|---|
| Date | 2016-05-30 16:56 +1000 |
| Message-ID | <uIWdnWfhU49hftbKnZ2dnUU7-dednZ2d@westnet.com.au> |
| In reply to | #30578 |
On 30/05/2016 4:46 PM, 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? My bad. I just checked and Chrome is not using plugins to display PDF but its "own" JavaScript files and an EMBED element. Still is it possible to trigger a function in the HTML from the PDF? Andrew Poulos
[toc] | [prev] | [next] | [standalone]
| From | "Evertjan." <exxjxw.hannivoort@inter.nl.net> |
|---|---|
| Date | 2016-05-30 10:48 +0200 |
| Message-ID | <XnsA6186DEE9581Beejj99@194.109.6.166> |
| In reply to | #30579 |
Andrew Poulos <ap_prog@hotmail.com> wrote on 30 May 2016 in comp.lang.javascript: > On 30/05/2016 4:46 PM, 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? Links in the pdf are clickable. > My bad. I just checked and Chrome is not using plugins to display PDF > but its "own" JavaScript files and an EMBED element. > > Still is it possible to trigger a function in the HTML from the PDF? HTML has no inside functions. Could you refrase? -- Evertjan. The Netherlands. (Please change the x'es to dots in my emailaddress)
[toc] | [prev] | [next] | [standalone]
| From | Osmo Saarikumpu <osmo@weppipakki.com> |
|---|---|
| Date | 2016-05-30 18:21 +0300 |
| Message-ID | <nihlqc$pnd$1@dont-email.me> |
| In reply to | #30579 |
On 30/05/2016 09:56, Andrew Poulos wrote: >> 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? ... > My bad. I just checked and Chrome is not using plugins to display PDF > but its "own" JavaScript files and an EMBED element. At least in the WWW, you won't have any control on how pdf files would be handled. In an environment where I have control, pdf files shall be opened by an external application. And I assure you that won't be a product from Adobe either. -- Best wishes, Osmo
[toc] | [prev] | [next] | [standalone]
| From | Thomas 'PointedEars' Lahn <PointedEars@web.de> |
|---|---|
| Date | 2016-05-30 19:55 +0200 |
| Message-ID | <1504947.4yvFh1R5iE@PointedEars.de> |
| In reply to | #30579 |
Andrew Poulos wrote: > […] is it possible to trigger a function in the HTML from the PDF? Probably not. -- PointedEars FAQ: <http://PointedEars.de/faq> | SVN: <http://PointedEars.de/wsvn/> Twitter: @PointedEars2 | ES Matrix: <http://PointedEars.de/es-matrix> Please do not cc me. / Bitte keine Kopien per E-Mail.
[toc] | [prev] | [next] | [standalone]
| From | Luuk <luuk@invalid.lan> |
|---|---|
| Date | 2016-05-30 19:56 +0200 |
| Message-ID | <574c7eb1$0$5820$e4fe514c@news.xs4all.nl> |
| In reply to | #30579 |
On 30-05-16 08:56, Andrew Poulos wrote: > On 30/05/2016 4:46 PM, 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? > > My bad. I just checked and Chrome is not using plugins to display PDF > but its "own" JavaScript files and an EMBED element. > > Still is it possible to trigger a function in the HTML from the PDF? > > Andrew Poulos > maybe this could be a hint: http://stackoverflow.com/questions/9219807/using-javascript-inside-a-pdf
[toc] | [prev] | [next] | [standalone]
| From | "Michael Haufe (TNO)" <tno@thenewobjective.com> |
|---|---|
| Date | 2016-06-01 07:26 -0700 |
| Message-ID | <f8615412-e7b3-4be5-8744-a45de98957f7@googlegroups.com> |
| In reply to | #30578 |
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>
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.javascript
csiph-web