Page 1 of 1

Embedding javascript in a pdf using docx4j

PostPosted: Thu Jun 23, 2011 3:02 am
by ShinoKarun
Hi

Wanted to know if docx4j supports embedding javascript into a pdf?

Thanks
Shinokarun

Re: Embedding javascript in a pdf using docx4j

PostPosted: Thu Jun 23, 2011 9:58 am
by jason
This comes down to FOP's support for embedding Javascript.

See the unanswered http://stackoverflow.com/questions/3934 ... e-with-fop

Suggest you post on the FOP mailng list.

Re: Embedding javascript in a pdf using docx4j

PostPosted: Thu Jun 23, 2011 9:38 pm
by ShinoKarun
Thanks for the reply.

From the link you gave me there seems to be support for embedding Javascript. The link below is from the FOP page.

http://xmlgraphics.apache.org/fop/dev/d ... nding.html

Code: Select all
For example:

<my:script-link script="app.execMenuItem('AcroSrch:Query');">
Search
</my:script-link>

to result in a text box referencing the following PDF action:

<<
/S /JavaScript
/JS (app.execMenuItem("AcroSrch:Query");)
>>


I wondered how this can be implemented through docx4j?

Also i found, searching through the FOP mailing list, a post from a someone who says he wrote the javascript to the pdf-bytestream. Would this be possible through docx4j?

http://fop-users.markmail.org/message/j ... te:results

Thanks Again
ShinoKarun