use a tmp_pdf filename