Edit pagenumber in different file formats