简体   繁体   English

是否可以在 pdf 文件中嵌入 java 程序(或小程序)

[英]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.我想知道是否可以将 java 程序或小程序嵌入到 pdf 文件中。 Any way of achieving this is okay for me (latex, adobe acrobat pro, etc).任何实现这一点的方法对我来说都可以(乳胶、adobe acrobat pro 等)。

Thanks in advance.提前致谢。

No. Not if you are not talking about security holes, anyway.不。无论如何,如果您不是在谈论安全漏洞,则不会。

Escape From PDF , great blog about security. Escape From PDF ,关于安全性的精彩博客。 For educational use only.仅用于教育用途。

You can embed just about anything in a PDF as an attachment.您可以将任何内容作为附件嵌入 PDF 中。

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.您可以在许多不同的库(例如 iText/iTextSharp)中以编程方式创建此类注释,或使用 Acrobat Pro UI 手动完成。

You can also embed Flash into a PDF, and control its execution to some extent via script in the PDF.您还可以将 Flash 嵌入到 PDF 中,并通过 PDF 中的脚本在一定程度上控制其执行。 If you can figure out how to wrap a.jar or convert it to SWF, you're there.如果您能弄清楚如何包装 a.jar 或将其转换为 SWF,那么您就可以了。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM