export the pdf file core