🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #20230

Re: fit to content ?

#20230
From: Dave Saunders
Date: Fri, 18 Oct 2002 13:55
9 lines
1470 bytes
Yes, it is possible. I've written an AppleScript to do it. You can even use the Fit method to do it if it is permitted in the UI (there's lots of restrictions). 

Or, you can do it by examining the content and adjusting the visible bounds accordingly. 

Depends how fancy you want to be. 

For instance, if all you want to do is eliminate slop at the bottom of the frame, all you need do is look at the last baseline of the frame, take into account the offset and the stroke weight and then adjust the bottom coordinate. (Actually, if you have fancy corners, it's a little more complicated -- although the Fit command in the UI ignores this possibility, as does my script.) 

Dave
Technical Details
Message-ID: <1de637ee.0@WebX.la2eafNXanI>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!newsfeed.news2me.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!newsfeed-east.nntpserver.com!nntpserver.com!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!WebX
References: <1de637ee.-1@WebX.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f939a,93fd7f36e2d2c580
X-Google-Attributes: gidf939a,public
X-Google-ArrivalTime: 2002-10-21 03:57:58 PST
From: "Dave Saunders" <daves@pdsassoc.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!newsfeed.news2me.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!newsfeed-east.nntpserver.com!nntpserver.com!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!WebX
Newsgroups: adobe.scripting.indesign
Subject: Re: fit to content ?
Message-ID: <1de637ee.0@WebX.la2eafNXanI>
Date: Fri, 18 Oct 2002 06:55:08 -0700
References: <1de637ee.-1@WebX.la2eafNXanI>
Lines: 17
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit