I've been struggling to work out how to export the current pdf page as shown in the pdfViewer after it has been rotated using controls in the pdfViewerNavigator. I'm trying to save the image in png format but it seems to export the page in the original orientation ignoring the applied rotation.
Also whilst searching the forum for a solution, I came across the code
but it appears that PageNo no longer exists in 2020.3.1020.
Currently i'm using
which exports the first page as a png, which works, I just need to save the currently selected page that may or may not have been rotated.
Is this possible, if so how ?