Home » Javascript » how to provide animation in 3D model in a pdf using itextsharp?

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

Posted by: admin November 1, 2017 Leave a comment

Questions:

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.

Answers:

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