in reply to Remove headers & Footers

Do you want to use perl for your problem?