Reply To: Center document without chancing zoom level

Home Page / Forums / General InDesign Topics (CLOSED) / Center document without chancing zoom level / Reply To: Center document without chancing zoom level

#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;
}

This article was last modified on June 9, 2022

Comments (0)

Loading comments...