ENH:finish the work of export to pdf