Insert pagenumber in various file formats