Adding a “First Page” button is a simple work around for getting back to the first page when paging through documents. This is especially handy if you use document sets.
- Edit the page and add a Script Editor web part.
- Click EDIT SNIPPET.
- Embed the following code:
<!DOCTYPE html> <html> <body> <input type="button" value="First Page" onclick="location.href=''"/> </body> </html>
I moved the Script Editor web part down below the library web part and changed the Direction to Right to Left.