How to get each line first character position and width of each line in extendscript?
Hi,
I need to get each lines first character position(top and left) and width of each line in textrange(text frame) using extendscript.

Please help.
Hi,
I need to get each lines first character position(top and left) and width of each line in textrange(text frame) using extendscript.

Please help.
Hi RobOctopus,
Thanks, I am try to recreate a new document with this type text frame in another machine using javascript api and extendscript. In this reason only i get all information of each line like left, top, width etc.,
so you want to take the information from 1 file. hold it into a script and recreate on another machine. This, i'm sure makes copy paste information unusable. I would think you would have an easier time getting the path of the object and contents (size, leading, etc) and then recreating that way
psuedo code
get text frames
for each text frame
get all path points along their text path (to recreate the path items, allows for irregular shapes)
get the contents of the text frame
for each character house loop through and save the size,leading and other pertinent styling options, along with font
all of the above information would be housed in some array format
new doc loop through array
create path item from coordinates
add text contents to path
loop through all character styling and apply correct styles to each
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.