Postscript to pdf

Laura Creighton lac at
Sun Sep 20 21:52:43 CEST 2015

In a message of Sun, 20 Sep 2015 21:32:34 +0200, Baladjy KICHENASSAMY writes:
>ohhhh ok i got it
>actually it's very easy the commande is :
>ps2pdf -dEPSCrop
>sorry but i'm new to python  my last question is how to integrate this
>to python... i want that the output file must be a pdf ?
>1) i created a button which i'll save my id card as "ps" file
>def save():
>    Canevas.update()
>    Canevas.postscript(file=tkFileDialog.asksaveasfilename(), colormode='color')

>2) so now i want to create a button to convert this "ps" file into "pdf" ....
>def convert():
>   help :/

You need to run the subprocess module to run your command.  (for python 2) (for python 3)

is this enough or do you need more help getting it to work?


More information about the Python-list mailing list