Set to page custom pdfviewer toolbar

How can I navigate to a specific page by entering a page number?
I tried using the following snippet, but it doesn’t seem to work as expected:

:link: Code Snippet

Also, is it possible to jump directly to the first or last page?

I’d really appreciate any help or suggestions.
Thanks in advance!

Hello finzaiko

To navigate to a specific page by entering a page number and to jump directly to the first or last page please use renderPage method.

Also note that using onPageRender event you should update the toolbar data.

Please check the example: Code Snippet

Yes Perfect,
Thanks @Natalia_Shilova for help and support