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

Syntax

CopyJavaScript
function setView(view);

Parameters

view

Type: PdfView Class

a JavaScript object representing the current view state.

Return Value

Type: Boolean

true if operation completed successfully; otherwise, false.

Examples

CopyJavaScript
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