setView Method |
Sets the view state (page visible, scroll, side panel, form highlighting, zoom level, etc) for the PdfWebControl instance.
function setView(view);
view
Type: PdfView Class a JavaScript object representing the desired view state.Type: Boolean
true if operation completed successfully; otherwise, false.var myApi = new PdfWebControlApi("PdfWebControl1"); // where "PdfWebControl1" is the ID (ClientID) assigned to the PdfWebControl instance myApi.setView({"page" : 1, "zoom" : 100}); //page 1 and zoom to 100%