RAD PDF Documentation
getPageCurrent Method
See Also  Send Feedback

Get the page currently being viewed in the PdfWebControl instance.

Syntax

CopyJavaScript
function getPageCurrent();

Parameters

None

Return Value

Type: Integer

Returns the number of the page currently being viewed

Remarks

This method will return a number less than 1 if no pages are found or a document is not open.

Examples

CopyJavaScript
var myApi = new PdfWebControlApi("PdfWebControl1"); // where "PdfWebControl1" is the ID (ClientID) assigned to the PdfWebControl instance
window.alert("You are viewing page " + myApi.getPageCurrent() + " of " + myApi.getPageCount() + ".");

See Also

Other Resources

PdfWebControlApi Methods
getPageCount Method
setPageCurrent Method

Send comments on this topic to sales@ctdeveloping.com

Copyright CTdeveloping, LLC