Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to embed java program (or applet) in a pdf file

I was wondering if it is possible to embed a java program or an applet into a pdf file. Any way of achieving this is okay for me (latex, adobe acrobat pro, etc).

Thanks in advance.

like image 879
Pouya Avatar asked Feb 24 '23 14:02

Pouya


2 Answers

No. Not if you are not talking about security holes, anyway.

Escape From PDF, great blog about security. For educational use only.

like image 50
Jacob Avatar answered May 01 '23 11:05

Jacob


You can embed just about anything in a PDF as an attachment.

And clicking on an "attachment annotation" gives the user the option to either view/launch or save it locally.

You can create such annotations programmatically in a number of different libraries (such as iText/iTextSharp), or use the Acrobat Pro UI to do it By Hand.

You can also embed Flash into a PDF, and control its execution to some extent via script in the PDF. If you can figure out how to wrap a .jar or convert it to SWF, you're there.

like image 39
Mark Storer Avatar answered May 01 '23 10:05

Mark Storer