We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to get the current page number which is being displayed in the PdfViewer?

Platform: ASP.NET Web Forms |
Control: PdfViewer

You can access the number, of the page being displayed in PDF viewer using the client-side currentPageNumber API on button click. The PageChanged event triggers  when there is a change in the current page number. Refer to the following code.


<form id="form1" runat="server" >
        <button id="load" onclick="getPageNumber(event)" type="button">Get Current Page Number</button>
        <div class="content-container-fluid">
        <div class="row">
            <div class="cols-sample-area">
                    <div class="control">                       
                             <ej:pdfviewer id="pdfviewer1" Height="800"  ServiceUrl="/api/PdfViewer" PageChanged="onPageChange" runat="server">



function getPageNumber(event) {
            var obj = $("#pdfviewer1").data("ejPdfViewer");
        function onPageChange(args)
            alert("Current page is changed");




2X faster development

The ultimate ASP.NET Web Forms UI toolkit to boost your development speed.
You must log in to leave a comment

Please sign in to access our KB

This page will automatically be redirected to the sign-in page in 10 seconds.

Up arrow icon

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile