python - 在 Python 中调用 Inkscape

标签 python pdf svg inkscape

Possible Duplicate:
Calling an external command in Python

我正在尝试使用 Python 将 SVG 文件转换为 PDF。我想为此使用 Inkscape。如何在 Python 中调用 Inkscape?

最佳答案

如果您根本不需要与进程通信,这应该就可以了:

import subprocess
p=subprocess.call(['program','arg1','arg2','arg3', ...])

关于python - 在 Python 中调用 Inkscape,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11651826/

相关文章:

python - 断线访问字典的正确方法

objective-c - PDF 在 iOS 4.3 中显示不正确,但在 iOS 5.0 及更高版本中正常显示

php - 使用 TCPDF 创建 PDF 在第 16928 行显示未定义索引 : cols in tcpdf/tcpdf. php

html - 带有 <style> 标签的 SVG 动画问题

python - 限制ajax调用仅对Flask中的登录用户

python - 属性错误 : module '' has no attribute '__path__'

python - 使用 python 正则表达式创建温度数据的 JSON 数组

ruby-on-rails - Prawn PDF 线适合边界框

svg - 增加 D3 图中边缘的可点击区域

javascript - Firefox 为 d3.js svg 库苦苦挣扎?