Article View: adobe.scripting.indesign
Article #2555Re: line (or paragraph) endHorizontalOffset bug??
From: Bob Stucky
Date: Wed, 10 Dec 2008 21:46
Date: Wed, 10 Dec 2008 21:46
15 lines
1296 bytes
1296 bytes
I figured there were changes, and CS4 doesn't seem to have the issue. My client's working in CS3, though... paragraphs.length == lines.length == 2 paragraph[ 0 ] ends with a return, paragraph[ 1 ] does not (nothing follows it). Here's the workaround: I was able to get correct measurements of right-aligned text using: line[0].insertionPoints[ 0 ].horizontalOffset; So I set the text to right aligned, make the measurements and calculations necessary to indent the text. Then I left-align all the lines, and set the left indents. Works like a charm, even if it's a serious kludge... Bob
Technical Details
Message-ID:
<59b73c41.6@webcrossing.la2eafNXanI>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!npeer03.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!newshub.sdsu.edu!webcrossingReferences:
<59b73c41.-1@webcrossing.la2eafNXanI>Show Full Headers
Complete Article Headers
X-Google-Thread: f939a,3c7ff808858e6033 X-Google-Attributes: gidf939a,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit From: "Bob Stucky" <rstucky@starband.net> Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!npeer03.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!newshub.sdsu.edu!webcrossing Newsgroups: adobe.scripting.indesign Subject: Re: line (or paragraph) endHorizontalOffset bug?? Message-ID: <59b73c41.6@webcrossing.la2eafNXanI> Date: Wed, 10 Dec 2008 13:46:41 -0800 References: <59b73c41.-1@webcrossing.la2eafNXanI> Lines: 20 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit