Code

6781e8a9eafe849a41d5ee0af73933908d18a3d0
[inkscape.git] / share / extensions / ps2pdf-ext.py
1 #!/usr/bin/env python\r
2 \r
3 """\r
4 ps2pdf-ext.py\r
5 Python script for running ps2pdf in Inkscape extensions\r
6 \r
7 Copyright (C) 2008 Stephen Silver\r
8 \r
9 This program is free software; you can redistribute it and/or modify\r
10 it under the terms of the GNU General Public License as published by\r
11 the Free Software Foundation; either version 2 of the License, or\r
12 (at your option) any later version.\r
13 \r
14 This program is distributed in the hope that it will be useful,\r
15 but WITHOUT ANY WARRANTY; without even the implied warranty of\r
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\r
17 GNU General Public License for more details.\r
18 \r
19 You should have received a copy of the GNU General Public License\r
20 along with this program; if not, write to the Free Software\r
21 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA\r
22 """\r
23 \r
24 import sys\r
25 from run_command import run\r
26 \r
27 #run('pstoedit -f plot-svg -dt -ssp "%s" "%%s"' % sys.argv[1], "pstoedit")\r
28 \rrun('ps2pdf "%s" "%%s"' % sys.argv[1], "ps2pdf")\r
29 \r
30 # vim: expandtab shiftwidth=4 tabstop=8 softtabstop=4 encoding=utf-8 textwidth=99\r