changeset 557:8421731685d4

macro.pdf2img: mask blanks in filename for commands
author Reimar Bauer <rb.proj AT googlemail DOT com>
date Thu, 10 Mar 2011 12:58:22 +0100
parents 47d9180d02ed
children 626e6880e69a
files data/plugin/macro/pdf2img.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/data/plugin/macro/pdf2img.py	Thu Mar 10 10:55:48 2011 +0100
+++ b/data/plugin/macro/pdf2img.py	Thu Mar 10 12:58:22 2011 +0100
@@ -30,8 +30,8 @@
 
 CACHE_ARENA = 'sendcache'
 CACHE_SCOPE = 'wiki'
-SVG_CMD = "pdf2svg %(pdf_file)s %(img_file)s %(pageno)s"
-PS2TOIMG_CMD = "pstoimg -quiet -crop tblr -density 200 -type png %(pdf_file)s -out %(img_file)s"
+SVG_CMD = """pdf2svg "%(pdf_file)s" "%(img_file)s" %(pageno)s"""
+PS2TOIMG_CMD = """pstoimg -quiet -crop tblr -density 200 -type png "%(pdf_file)s" -out "%(img_file)s" """
 
 def url_exists(url):
     content = ""