Welcome Guest Search | Active Topics | Sign In | Register

Javascript in PDF-document Options
Mikhail
Posted: Monday, April 28, 2014 9:04:18 AM
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.
eo_support
Posted: Monday, April 28, 2014 9:17:31 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,218
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!
vladimir
Posted: Tuesday, May 20, 2014 10:06:54 AM
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!
eo_support
Posted: Tuesday, May 20, 2014 10:37:23 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,218
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!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.