|
Rank: Newbie Groups: Member
Joined: 4/28/2014 Posts: 1
|
Hi,
As I know pdf-document can contain javascript code. Is it possible to add javascript code into document, using EO.Pdf API? And how I can do it, if it is possible?
Thanks.
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,200
|
Hi,
Thanks for posting in the forum. Currently it is not possible to add JavaScript code into PDF file with our API. JavaScript code in PDF are very different than JavaScript in web pages since the target objects they work on are very different --- for a Web page it's DOM, for PDF Adobe has its own set of objects. It has existed for a long time but is not widely used. That's why we do not support yet it.
Thanks!
|
|
Rank: Newbie Groups: Member
Joined: 1/15/2014 Posts: 2
|
Hi guys! I understood your concerns about js. But may be there is simple way to achive the next functionality: need to automatically open Print-page after opening pdf-file (we use HtmpToPdf-class to emulate printing in internet browser)? Or would be good have 'entry point' to pass pdf-oriented js- string (another words to execute code like this
Code: C#
htmlToPdfOptions.Js = "pdf.onLoad = function() { pdf_alert('hello'); }"
). Thanks!
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,200
|
Hi,
We will look into this and see what we can do. While adding full scale JavaScript support is unlikely, it might be possible for us to add feature specific support such as enabling printing.
Thanks!
|
|