🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #18973

Autoflowproblem when placing rtf

#18973
From: �ystein �rneg�rd
Date: Mon, 10 Feb 2003 11:45
25 lines
1935 bytes
Hi!

I am placing a rtf-doc in a InDesign document using the place method of the textframe object.

my code:

arr = array ("0", "0")
set myTextframe = doc.textframes.item(1)
set dummy = myTextframe.Place (rtfDoc, arr, doc.Layers.Item(1), true, true, true)

This works allmost 100% like I want it to - but for some rtf files it fails to generate the last page.

As an example: the script generates 6 pages in my indesign document - but there is more text - meaning that InDesign should generate one more page (a 7th page). The text exists in the textframe - I can manually open the InDesign document, create a new page and make the text autoflow on to the new page.

This does not happen every time - sometimes it creates all the pages needed to fit all of the text.

If I put a few extra linefeeds at the end of the rtf-document before running the script might make it produce all the needed pages.

At other times - this is not enough. Then it will produce enough pages only if I insert a pagebreak at the end of the rtf file.

Has anyone experienced this rather annoying bug/feature - and if so: any suggestions as to how to solve this?

Regards,
�ystein �rneg�rd
Norway
Technical Details
Message-ID: <1de7c804.-1@WebX.la2eafNXanI>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!newshosting.com!news-xfer2.atl.newshosting.com!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!WebX

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII
X-Google-Thread: f939a,af6b6c5e0a346b11,start
X-Google-Attributes: gidf939a,public
X-Google-ArrivalTime: 2003-02-10 04:07:39 PST
From: "�ystein �rneg�rd" <o@ctech.no>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!newshosting.com!news-xfer2.atl.newshosting.com!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!WebX
Newsgroups: adobe.scripting.indesign
Subject: Autoflowproblem when placing rtf
Message-ID: <1de7c804.-1@WebX.la2eafNXanI>
Date: Mon, 10 Feb 2003 03:45:09 -0800
Lines: 36
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit