Article View: adobe.scripting.indesign
Article #18340Re: place text in master frame and autoflow [AS]
From: RaygPowell
Date: Mon, 31 Mar 2003 18:48
Date: Mon, 31 Mar 2003 18:48
29 lines
1648 bytes
1648 bytes
I'm having the same sort of problems and only way I've found so far is to resize the textframes after the fact. Sorry if it looks messy, I'm translating from another programming style. I haven't found a direct way to use the masterpages.
docs = InDesign.Documents
doc = docs.Add
pages = doc.pages
page = pages.Item(1)
mpref = page.MarginPreferences
mpref.MarginTop = 1
tfs = page.Textframes
tf = tfs.Add
tf.GeometricBounds Array(1, .5,10.5,8)
tfpref = tf.TextFramePreferences
tfpref.MarginTop = 1
tfpref.TextColumnCount = 2
tf.Place("c:\my documents\tagged text.TXT","","",1,1,0,0)
pgs = pages.Count
for ind :in pgs
page = pages.Item(ind)
tfs = page.Textframes
tf = tfs.Item(1)
tf.GeometricBounds Array(1,.5,10.5,8)
tfp = tf.TextFramePreferences
tfp.TextColumnCount = 2
endfor
My problem is that the PLACE loses all character and paragraphs styles!!
....Ray
Technical Details
Message-ID:
<1de86ee4.1@WebX.la2eafNXanI>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-06!sn-xit-08!supernews.com!newsfeed.news2me.com!newsfeed.freenet.de!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!WebXReferences:
<1de86ee4.-1@WebX.la2eafNXanI>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f939a,e6b6a41ddbdb1c21 X-Google-Attributes: gidf939a,public X-Google-ArrivalTime: 2003-03-31 11:07:48 PST From: RaygPowell <ray.powell@qp.gov.bc.ca> Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-06!sn-xit-08!supernews.com!newsfeed.news2me.com!newsfeed.freenet.de!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!WebX Newsgroups: adobe.scripting.indesign Subject: Re: place text in master frame and autoflow [AS] Message-ID: <1de86ee4.1@WebX.la2eafNXanI> Date: Mon, 31 Mar 2003 10:48:58 -0800 References: <1de86ee4.-1@WebX.la2eafNXanI> Lines: 33 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit