🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #17360

Re: How to know if a page is verso or recto?

#17360
From: Johannes Buchmann
Date: Fri, 13 Jun 2003 11:20
35 lines
1892 bytes
... and my last post to this :-)

now I got something that works fine for me, in my isRectoFunction i change ColCount of one MasterPage temporarily and then test ColCount of Page
 this way:



 
'Returns True if objPage is on right side  
'\n 
Private Function isRecto(objPage) As Boolean '\n 
Dim objMaster, objMarker As Object '\n 
Dim strMaster As String '\n 
Dim boolRecto As Boolean '\n 
Dim i As Integer '\n 
Dim lngStandardCols As Long '\n 
lngStandardCols = objPage.AppliedMaster.Pages.Item(1).MarginPreferences.ColumnCount '\n 
objPage.AppliedMaster.Pages.Item(1).MarginPreferences.ColumnCount = lngStandardCols + 1 '\n 
If objPage.MarginPreferences.ColumnCount = lngStandardCols Then '\n 
    boolRecto = True '\n 
Else '\n 
    boolRecto = False '\n 
End If '\n 
objPage.AppliedMaster.Pages.Item(1).MarginPreferences.ColumnCount = lngStandardCols '\n 
isRecto = boolRecto '\n 
End Function '\n 




hope someone can use it

(every '\n comment indicates line break, admins here dont allow me to subscribe with a newsreader, they block port 119 or something... so this form is what i got here - sorry)

johannes
Technical Details
Message-ID: <1de944a9.11@WebX.la2eafNXanI>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-01!sn-xit-09!supernews.com!news.maxwell.syr.edu!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!WebX
References: <1de944a9.-1@WebX.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f939a,773d8af0ffb694fa
X-Google-Attributes: gidf939a,public
X-Google-ArrivalTime: 2003-06-13 04:37:49 PST
From: "Johannes Buchmann" <johannesbuchmann@hotmail.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-01!sn-xit-09!supernews.com!news.maxwell.syr.edu!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!WebX
Newsgroups: adobe.scripting.indesign
Subject: Re: How to know if a page is verso or recto?
Message-ID: <1de944a9.11@WebX.la2eafNXanI>
Date: Fri, 13 Jun 2003 04:20:42 -0700
References: <1de944a9.-1@WebX.la2eafNXanI>
Lines: 38
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit