6 Replies Latest reply on May 7, 2009 10:33 AM by J-Cro

    [js] PageOrientation in documentPreferences


      Hi All,


         I have an InDesign document where the width is 14in and the height is 11in.  The pageOrientation is set to landscape.  I have a Javascript where I am creating the document preset for this particular document.  The problem lies in the value that is retrieved for the pageOrientation for this document.  For some reason, the value retrieved from "app.activeDocument.documentPreferences.pageOrientation" is PORTRAIT and not LANDSCAPE.   This doesn't make sense when the document setup through InDesign (desktop) clearly states the pageOrientation is set to landscape.  All other "documentPreferences" settings look fine in the JavaScript


      Thanks for your help!