简体   繁体   中英

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. I want to provide some animation in that 3D model. Is there any way to do this with itextSharp or 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.

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).

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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