Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #96897
| Path | csiph.com!news.mixmin.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed8.news.xs4all.nl!nzpost1.xs4all.net!not-for-mail |
|---|---|
| Return-Path | <lac@openend.se> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.007 |
| X-Spam-Evidence | '*H*': 0.99; '*S*': 0.00; 'cc:addr:python-list': 0.09; 'command.': 0.09; 'received:openend.se': 0.09; 'received:theraft.openend.se': 0.09; 'python': 0.10; 'output': 0.13; '>1)': 0.16; '>2)': 0.16; '>to': 0.16; 'cc:addr:lac': 0.16; 'cc:addr:openend.se': 0.16; 'cc:name:laura creighton': 0.16; 'from:addr:lac': 0.16; 'from:addr:openend.se': 0.16; 'from:name:laura creighton': 0.16; 'message-id:@fido.openend.se': 0.16; 'received:fido': 0.16; 'received:fido.openend.se': 0.16; 'subprocess': 0.16; 'laura': 0.18; '2015': 0.20; 'cc:addr:python.org': 0.20; 'cc:2**2': 0.20; 'sep': 0.22; 'module': 0.25; 'question': 0.27; '+0200,': 0.27; 'received:se': 0.29; 'cc:no real name:2**1': 0.29; 'convert': 0.29; "i'm": 0.30; 'getting': 0.33; 'run': 0.33; 'url:python': 0.33; "i'll": 0.33; '(for': 0.34; 'file': 0.34; 'integrate': 0.35; 'but': 0.36; 'url:org': 0.36; 'created': 0.36; 'url:library': 0.36; 'subject:: ': 0.37; 'pdf': 0.37; 'charset:us-ascii': 0.37; 'button': 0.38; 'enough': 0.39; 'easy': 0.60; 'url:3': 0.60; 'save': 0.60; 'your': 0.60; 'header:Message-Id:1': 0.61; 'more': 0.63; 'card': 0.63; 'url:4': 0.70; '.....': 0.76; '>def': 0.84; 'header:In-reply- to:1': 0.84 |
| To | Baladjy KICHENASSAMY <baladjy@gmail.com> |
| cc | Laura Creighton <lac@openend.se>, python-list@python.org, lac@openend.se |
| From | Laura Creighton <lac@openend.se> |
| Subject | Re: Postscript to pdf |
| In-reply-to | <CAKSfFmiThEyW8B=ni8NA1FGY1aC2sU3L1CApgy1oA6A8+MKQvQ@mail.gmail.com> |
| References | <f1c3720b-ee32-4a22-bdfa-7a1bedebc16f@googlegroups.com> <mailman.42.1442767228.21674.python-list@python.org> <ed98eb8c-8316-41bc-97ff-008c2f0c91f3@googlegroups.com> <201509201812.t8KICXHu004041@fido.openend.se> <CAKSfFmhqTWzem6aW+3KOxKTo4C35JdmoRv=BrkSu8+Hruz3WmA@mail.gmail.com> <201509201909.t8KJ93oU018314@fido.openend.se> <CAKSfFmiThEyW8B=ni8NA1FGY1aC2sU3L1CApgy1oA6A8+MKQvQ@mail.gmail.com> |
| Comments | In-reply-to Baladjy KICHENASSAMY <baladjy@gmail.com> message dated "Sun, 20 Sep 2015 21:32:34 +0200." |
| MIME-Version | 1.0 |
| Content-Type | text/plain; charset="us-ascii" |
| Content-ID | <29270.1442778763.1@fido> |
| Content-Transfer-Encoding | quoted-printable |
| Date | Sun, 20 Sep 2015 21:52:43 +0200 |
| X-Greylist | Sender IP whitelisted, not delayed by milter-greylist-4.3.9 (theraft.openend.se [82.96.5.2]); Sun, 20 Sep 2015 21:52:46 +0200 (CEST) |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.20+ |
| Precedence | list |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-list/> |
| List-Post | <mailto:python-list@python.org> |
| List-Help | <mailto:python-list-request@python.org?subject=help> |
| List-Subscribe | <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.7.1442778771.28679.python-list@python.org> (permalink) |
| Lines | 30 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1442778771 news.xs4all.nl 23796 [2001:888:2000:d::a6]:46097 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:96897 |
Show key headers only | View raw
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 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(): > 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. https://docs.python.org/2/library/subprocess.html (for python 2) https://docs.python.org/3.4/library/subprocess.html (for python 3) is this enough or do you need more help getting it to work? Laura
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Postscript to pdf Bala Ji <baladjy@gmail.com> - 2015-09-20 09:20 -0700
Re: Postscript to pdf Laura Creighton <lac@openend.se> - 2015-09-20 18:40 +0200
Re: Postscript to pdf Bala Ji <baladjy@gmail.com> - 2015-09-20 09:50 -0700
Re: Postscript to pdf Laura Creighton <lac@openend.se> - 2015-09-20 20:12 +0200
Re: Postscript to pdf Laura Creighton <lac@openend.se> - 2015-09-20 21:09 +0200
Re: Postscript to pdf Baladjy KICHENASSAMY <baladjy@gmail.com> - 2015-09-20 20:27 +0200
Re: Postscript to pdf Christian Gollwitzer <auriocus@gmx.de> - 2015-09-21 15:39 +0200
Re: Postscript to pdf Baladjy KICHENASSAMY <baladjy@gmail.com> - 2015-09-20 21:32 +0200
Re: Postscript to pdf Laura Creighton <lac@openend.se> - 2015-09-20 21:52 +0200
Re: Postscript to pdf Laura Creighton <lac@openend.se> - 2015-09-21 00:50 +0200
Re: Postscript to pdf Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2015-09-20 20:25 -0400
Re: Postscript to pdf Baladjy KICHENASSAMY <baladjy@gmail.com> - 2015-09-20 23:11 +0200
Re: Postscript to pdf Nobody <nobody@nowhere.invalid> - 2015-09-21 13:56 +0100
Re: Postscript to pdf Baladjy KICHENASSAMY <baladjy@gmail.com> - 2015-09-21 17:20 +0200
Re: Postscript to pdf Christian Gollwitzer <auriocus@gmx.de> - 2015-09-23 08:40 +0200
Re: Postscript to pdf mithra <curtis.rendon@gmail.com> - 2015-09-23 17:01 -0700
Re: Postscript to pdf Terry Reedy <tjreedy@udel.edu> - 2015-09-21 00:17 -0400
csiph-web