change the structure of pdf file created