#Get page visualization area size
visualizationAreaSize=Document.ActivePageReference.GetVisualizationAreaSize()
print visualizationAreaSize.Height, visualizationAreaSize.Width
#Get visual bounds of active visualizaton
viz = Document.ActivePageReference.ActiveVisualReference
visualBounds=Document.ActivePageReference.GetVisualBounds(viz)
print visualBounds
#Toggles the visualization area size between 1200x1080 and fit to window
from System.Drawing import Size
height=1390
width=1030
Document.Pages.VisualizationAreaSize.Size = Size(height,width)
fitToWindow=Document.Pages.VisualizationAreaSize.FitToWindow
Document.Pages.VisualizationAreaSize.FitToWindow = not fitToWindow
visualizationAreaSize=Document.ActivePageReference.GetVisualizationAreaSize()
print visualizationAreaSize.Height, visualizationAreaSize.Width
#Get visual bounds of active visualizaton
viz = Document.ActivePageReference.ActiveVisualReference
visualBounds=Document.ActivePageReference.GetVisualBounds(viz)
print visualBounds
#Toggles the visualization area size between 1200x1080 and fit to window
from System.Drawing import Size
height=1390
width=1030
Document.Pages.VisualizationAreaSize.Size = Size(height,width)
fitToWindow=Document.Pages.VisualizationAreaSize.FitToWindow
Document.Pages.VisualizationAreaSize.FitToWindow = not fitToWindow
ConversionConversion EmoticonEmoticon