NamedTemporaryFile for fdf file in write_pdf()