Article View: adobe.scripting.indesign
Article #15251Re: Question re page numbering [VB] ID 2.0.2
From: Iolaire_McFadden
Date: Mon, 15 Dec 2003 14:48
Date: Mon, 15 Dec 2003 14:48
12 lines
1229 bytes
1229 bytes
To follow up on my post on how to correctly delete pages I've solved my question. Rather than using
deletePage = myDocument.TextFrames.Item("Stats_Page").Parent.Name
To identify the pate to delete I was supposed to use
deletePage = myDocument.TextFrames.Item("Stats_Page").Parent.DocumentOffset
The when I do:
myDocument.Pages.Item(deletePage).Delete
It doesn't fail when using sectional page numbering.
I guess .Name is the page number on the page counted from the start of the section and .DocumentOffset is the page number counted from the start of the document.
iolaire
Technical Details
Message-ID:
<2ccec433.0@webx.la2eafNXanI>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!webxReferences:
<2ccec433.-1@webx.la2eafNXanI>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f939a,e2801a5e87fe524b X-Google-Attributes: gidf939a,public X-Google-ArrivalTime: 2003-12-15 07:07:40 PST From: Iolaire_McFadden@adobeforums.com Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!webx Newsgroups: adobe.scripting.indesign Subject: Re: Question re page numbering [VB] ID 2.0.2 Message-ID: <2ccec433.0@webx.la2eafNXanI> Date: Mon, 15 Dec 2003 06:48:04 -0800 References: <2ccec433.-1@webx.la2eafNXanI> Lines: 17 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit