简体   繁体   English

如何使用itextsharp在pdf中提供3D模型的动画?

[英]how to provide animation in 3D model in a pdf using itextsharp?

I am using the itextSharp library to generate a pdf that contains a 3D model. 我正在使用itextSharp库生成包含3D模型的pdf。 I want to provide some animation in that 3D model. 我想在该3D模型中提供一些动画。 Is there any way to do this with itextSharp or javascript? 有什么办法可以使用itextSharp或javascript吗? An example code would be appreciated. 示例代码将不胜感激。

Thanks in advance. 提前致谢。

Short answer: 简短答案:

You can't. 你不能

Long answer: 长答案:

If the U3D model has animations already defined, you can use iText (or any decent PDF library) to add some JavaScript to the 3D Annotation Widget that will trigger the animation to play, go to a specific step, rewind, loop, etc. 如果U3D模型已经定义了动画,则可以使用iText(或任何不错的PDF库)向3D注释小部件中添加一些JavaScript,以触发动画的播放,转到特定步骤,快退,循环等。

If you want to programmatically add animations to the model that can later be triggered, you'll need to use a U3D library and learn a lot of very complicated math... or use a 3D authoring tool like (the products that must not be named but are referenced above in a comment). 如果您想以编程方式向模型中添加动画以便稍后触发,则需要使用U3D库并学习很多非常复杂的数学...或使用3D创作工具,例如(命名,但上面在注释中引用)。

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

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