Skip to content Skip to sidebar Skip to footer

Converting Idml To Html5 Thru Script

I am trying to convert IDML into HTML5 through script, not through InDesign. Everything comes out ok except for the rotated texts in the IDML. When the text is rotated, I take the

Solution 1:

When the top/y coordinate is off after rotation, it's usually because you're rotating around a different origin than you think you are. You need to make sure the origin of your rotation is at 0,0 before you rotate, so you typically translate your object to zero, then rotate, then translate it back again. It's hard to be more helpful without seeing some code - an example of the IDML input, your rotate function, and then the html5 output you're getting will probably reveal what the issue is.

This tutorial is Flash-based but is still one of the best explanations I've found of how matrix transformations work: http://www.senocular.com/flash/tutorials/transformmatrix/

Post a Comment for "Converting Idml To Html5 Thru Script"