I need to know the number of the selected page (not the current page, but the page number of the page the user has selected with the mouse).
I also need to know how I can select pages by code.
This is for a split function, which shall split a pdf into 2 pieces.