There are some direct properties for some, we plan to add more:
SidePaneVisible |
Gets or sets a value that specifies whether the left side pane is visible. The default is true.
|
ToolbarVisible |
Gets or sets a value that specifies whether the top toolbar is visible. The default is true.
|
Others can be set like this:
<GleamTech:DocumentViewer ID="documentViewer" runat="server"
Width="800"
Height="600"
Resizable="True"
ClientLoad="documentViewerLoad" />
<script type="text/javascript">
function documentViewerLoad(sender, e) {
var documentViewer = sender; //sender parameter will be the DocumentViewer instance
documentViewer.setZoomLevel(1); // Set zoom to 100%
}
</script>
Alternative methods that adjust view:
documentViewer.fitPage(); // Adjust page so that both width and height fits the view
documentViewer.fitWidth(); // Default behavior
Layout modes:
documentViewer.setLayoutMode("Continuous"); // Default behavior
documentViewer.setLayoutMode("Facing");
documentViewer.setLayoutMode("FacingContinuous");
documentViewer.setLayoutMode("FacingCover");
documentViewer.setLayoutMode("FacingCoverContinuous");
documentViewer.setLayoutMode("Single");