Re: Postscript to pdf

2015-09-23 Thread Christian Gollwitzer
Am 21.09.15 um 17:20 schrieb Baladjy KICHENASSAMY: Hello, This is my programe : on mac i was able to output ps file but i didn't got the pdf file :/ Maybe ps2pdf is not installed? I think it doesn't come with the Mac. You need to get it via fink, homebrew, macports or an official ghostscript

Re: Postscript to pdf

2015-09-23 Thread mithra
On Tuesday, September 22, 2015 at 2:20:56 AM UTC-5, Bala Ji wrote: > Hello, > This is my programe : on mac i was able to output ps file but i didn't > got the pdf file :/ > > # -*- coding: utf-8 -*- > # script lecture_gif.py > from Tkinter import * > import tkMessageBox > import Tkconstants >

Re: Postscript to pdf

2015-09-22 Thread Baladjy KICHENASSAMY
Hello, This is my programe : on mac i was able to output ps file but i didn't got the pdf file :/ # -*- coding: utf-8 -*- # script lecture_gif.py from Tkinter import * import tkMessageBox import Tkconstants import tkFileDialog from PIL import ImageTk import PIL.Image import os, sys import

Re: Postscript to pdf

2015-09-21 Thread Baladjy KICHENASSAMY
well one more question :/ i tried this def save(): Canevas.update() Canevas.postscript(file=tkFileDialog.asksaveasfilename(), colormode='color') subprocess.call(["ps2pdf", "-dEPSCrop", "test.ps", "test.pdf"]) i got the ps file but i didn't get the pdf file :/ 2015-09-20 21:52

Re: Postscript to pdf

2015-09-21 Thread Nobody
On Sun, 20 Sep 2015 23:11:20 +0200, Baladjy KICHENASSAMY wrote: > i tried this > > def save(): > Canevas.update() > Canevas.postscript(file=tkFileDialog.asksaveasfilename(), > colormode='color') > subprocess.call(["ps2pdf", "-dEPSCrop", "test.ps", "test.pdf"]) > > > i got the ps

Re: Postscript to pdf

2015-09-21 Thread Christian Gollwitzer
Am 20.09.15 um 20:27 schrieb Baladjy KICHENASSAMY: Hello, I'm using macosx, ps2pdf version i don't know :/ sorry ok actually i found what is the problem... There is no problem with the ps file every thing is fine =) You could try ps2pdf -dEPSCrop input.ps output.pdf that should create

Re: Postscript to pdf

2015-09-20 Thread Laura Creighton
In a message of Sun, 20 Sep 2015 09:50:02 -0700, Bala Ji writes: >Thank u laura, >I tired it but the problem when i use it there is only half of the image >its like the software cut the image >-- >https://mail.python.org/mailman/listinfo/python-list Ok. We need more information. What OS are

Re: Postscript to pdf

2015-09-20 Thread Laura Creighton
In a message of Sun, 20 Sep 2015 21:32:34 +0200, Baladjy KICHENASSAMY writes: >o ok i got it >actually it's very easy the commande is : >ps2pdf -dEPSCrop image.ps > >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 ?

Re: Postscript to pdf

2015-09-20 Thread Laura Creighton
In a message of Sun, 20 Sep 2015 23:11:20 +0200, Baladjy KICHENASSAMY writes: >well one more question :/ > >i tried this > >def save(): > Canevas.update() > Canevas.postscript(file=tkFileDialog.asksaveasfilename(), >colormode='color') > subprocess.call(["ps2pdf", "-dEPSCrop",

Re: Postscript to pdf

2015-09-20 Thread Laura Creighton
In a message of Sun, 20 Sep 2015 09:20:10 -0700, Bala Ji writes: >Hello, > >I'm doing a software to make an id card for a school club so i used TKINTER to >make this software. >So i can enter details like name, student number etc.. > >So finally i got a Postscript file the problem is that i want

Postscript to pdf

2015-09-20 Thread Bala Ji
Hello, I'm doing a software to make an id card for a school club so i used TKINTER to make this software. So i can enter details like name, student number etc.. So finally i got a Postscript file the problem is that i want to make a pdf file do you have any ideas? "convert ps to pdf" Thank u

Re: Postscript to pdf

2015-09-20 Thread Terry Reedy
On 9/20/2015 12:20 PM, Bala Ji wrote: Hello, I'm doing a software to make an id card for a school club so i used TKINTER to make this software. So i can enter details like name, student number etc.. So finally i got a Postscript file the problem is that i want to make a pdf file do you have

Re: Postscript to pdf

2015-09-20 Thread Baladjy KICHENASSAMY
o ok i got it actually it's very easy the commande is : ps2pdf -dEPSCrop image.ps 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():

Re: Postscript to pdf

2015-09-20 Thread Baladjy KICHENASSAMY
Hello, I'm using macosx, ps2pdf version i don't know :/ sorry ok actually i found what is the problem... There is no problem with the ps file every thing is fine =) Can u please just tell me how to change paper settings ? i want to go from portait to landscape ? 2015-09-20 20:12

Re: Postscript to pdf

2015-09-20 Thread Bala Ji
Thank u laura, I tired it but the problem when i use it there is only half of the image its like the software cut the image -- https://mail.python.org/mailman/listinfo/python-list

Re: Postscript to pdf

2015-09-20 Thread Laura Creighton
In a message of Sun, 20 Sep 2015 20:27:48 +0200, Baladjy KICHENASSAMY writes: >Hello, > >I'm using macosx, ps2pdf version i don't know :/ sorry >ok actually i found what is the problem... > >There is no problem with the ps file every thing is fine =) > >Can u please just tell me how to change