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:
- The text frame in InDesign has a dimension of 400 x 80 (pixels)
- This is the exported PNG, which has a dimesion of 400 x 96 (pixels). Notice the padding at the top and bottom of the image.