Quantcast
Channel: Adobe Community : Popular Discussions - InDesign Scripting
Viewing all articles
Browse latest Browse all 15932

[JS] PageItem Export to PNG: exported image's dimesion is different from PageItem's

$
0
0

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)

frame.png

 

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

real-dimension.png


Viewing all articles
Browse latest Browse all 15932

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>