Include lastpage in export, 2.06 branch