Include lastpage in export