結果 : how to generate pdf with python code