結果 : where to put python code to generate a pdf