25 Replies Latest reply on Oct 17, 2014 1:20 PM by Pickory

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

    Hoang_Huynh

      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