Click or drag to resize

setView Method

Sets the view state (page visible, scroll, side panel, form highlighting, zoom level, etc) for the PdfWebControl instance.

Syntax
JavaScript
function setView(view);

Parameters

view

Type: PdfView Class

a JavaScript object representing the desired view state.

Return Value

Type: Boolean

true if operation completed successfully; otherwise, false.

Examples
JavaScript
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%
See Also