Curtis Clauson wrote:
In a Text Document Basic script, how do I get the actual height of a
Text Frame that has TextFrame.FrameIsAutomaticHeight set to True?

All of the width related properties and function values return the
current size, but those related to height return 41.
  TextFrame            FrameHeightAbsolute
  BaseFrameProperties  Height
                       Size.Height
  XShape               getSize().Height

The Text Frame height is adjusted automatically to what is required by
the content, but how do I obtain the current actual height in the same
units as the width and location (1/100 mm)?

Also, XShape.getPosition() fires an unspecified exception
  Code  Message
     1  An exception occurred.
XShape.getShape() works just fine. Is there a reason why getPosition()
does not?


Does anyone have any information on this?

I'm trying to create a script for a museum historic document archival project that will take an RTF file, generated by an OCR application that places text in auto-height Text Frames, and strip out the Text Frames and append the text to the main document in the correct order. It will also warn the user if there are any overlapping text frames so they can first manually edit them.

However, to do this I have to know what the actual height of each text frame is in the same units as the width and position. I can find no way through the Text Frame or Shape API to obtain this. All I get for an auto-height Text Frame is the same value of 41, and turning off auto-height forces the height to that same value of 41.

Desperate for help here.

--
--------------------------------------------------------
The Snake Pit - Development   www.TheSnakePitDev.com
Curtis Clauson                [EMAIL PROTECTED]
Proprietor

"Any sufficiently over-complicated magic is indistinguishable from technology." -- Llelan D.


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to