Copy link to clipboard
Copied
When I try to export a rectangular text frame to PNG with JavaScript, the result PNG image may have bigger dimension than that of the text frame itself in InDesign. I believe this has something to do with the line height of the text.
Is there any Export option I can use to make the exported image's dimension the same as the text frame's?
Please see my attached pictures for an example:
Hmm -- moving any item "into" a rectangle is not a straightforward operation. Well, let's (ab)use "app.copy" and "app.paste" then, although, theoretically at least, it should be possible by manipulating the objects.
This duplicates the selected item, removes its contents, sets stroke and fill to none, and then pastes the original selection into the new one. After exporting, the duplicated object automatically gets deleted so you end up with what you started with.
(Warning! Tested only with CS4!)
...ob
Copy link to clipboard
Copied
Hello,
Did any one find a result for this?
I am writing a script to export to Baker framework and it would be really handy to have a script fix for this. I have got some a approximations on the extra space, but that really is not good enough.
I can / have write a C++ plugin, but that would make my script dependent on my plugin.
All the best.
P.