generate pdf from the data generated from the pyside application

I have created a invoice calculator using pyside.In the application get Invoice button is provided . I want that when this get invoice button is clicked a pdf should be generated and saved on users desktop. Since I am new to pyside I don't know how it can be done.

interface of the application:

enter image description here