Include lastpage in export
Merge pull request #257 from Jan-E/master

Fixed #9398 - Include lastpage in export