Back

If your email is not recognized and you believe it should be, please contact us.

  • You must be logged in to reply to this topic.Login

Center document without chancing zoom level

Return to Member Forum

  • Author
    Posts
    • #62396

      Is there a way to center the document without chancing the zoom level?

    • #62422
      mac grunt
      Member

      G'day

      Wouldn't that be cool? — I've not seen a way to do it

      But… you could have a script do it for you

      tell application “Adobe InDesign CS5.5”
      tell layout window 1 of document 1
      set theZoom to zoom percentage
      zoom given show pasteboard
      set zoom percentage to theZoom
      end tell
      end tell

      Copy that into Script Editor (Applications > Applescript)
      Change first line to your version of InDesign
      Save it as a script to Applications > InDesign > Scripts > Scripts Panel
      Open Scripts Panel in InDesign (Window > Utilities)
      Double click to run it

      If you have nothing selected it will centre the page
      If you DO have something selected, it will centre on that

      You could even assign a keyboard shortcut to run the script for you

      m.

    • #62423
      mac grunt
      Member

      Sorry — forgot to say…

      Make sure you retype those quote marks (“) — sometimes they get copied as curly quotes and that will break the script.

      m.

    • #62448

      Great! Thank you very much.

      I assign the shortcut 'C' and it works very well.

    • #14366622
      Tobias Wantzen
      Participant

      Sorry for adding to an old thread, but I needed this either, and transformed it to ExendScript, which will work on Mac and Windows:

      
      if( app.documents.length > 0 ) {
          var theWindow = app.activeDocument.layoutWindows[0],
              theZoom = theWindow.zoomPercentage;
          theWindow.zoom(ZoomOptions.SHOW_PASTEBOARD);
          theWindow.zoomPercentage = theZoom;
      }
      
Viewing 4 reply threads
  • The forum ‘General InDesign Topics (CLOSED)’ is closed to new topics and replies.
Forum Ads