File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed
Filter options
Expand file tree Collapse file tree 2 files changed +6
-5
lines changed
Original file line number Diff line number Diff line change @@ -420,7 +420,8 @@ def checkdep_pdftops():
420
420
def checkdep_inkscape ():
421
421
if checkdep_inkscape .version is None :
422
422
try :
423
- s = subprocess .Popen ([str ('inkscape' ), '-V' ], stdout = subprocess .PIPE ,
423
+ s = subprocess .Popen ([str ('inkscape' ), '-V' ],
424
+ stdout = subprocess .PIPE ,
424
425
stderr = subprocess .PIPE )
425
426
stdout , stderr = s .communicate ()
426
427
lines = stdout .decode ('ascii' ).split ('\n ' )
@@ -437,7 +438,8 @@ def checkdep_inkscape():
437
438
438
439
def checkdep_xmllint ():
439
440
try :
440
- s = subprocess .Popen ([str ('xmllint' ), '--version' ], stdout = subprocess .PIPE ,
441
+ s = subprocess .Popen ([str ('xmllint' ), '--version' ],
442
+ stdout = subprocess .PIPE ,
441
443
stderr = subprocess .PIPE )
442
444
stdout , stderr = s .communicate ()
443
445
lines = stderr .decode ('ascii' ).split ('\n ' )
Original file line number Diff line number Diff line change @@ -179,7 +179,7 @@ def make_pdf_to_png_converter():
179
179
tools_available = []
180
180
# check for pdftocairo
181
181
try :
182
- check_output ([str ("pdftocairo" ), str ( "-v" ) ], stderr = subprocess .STDOUT )
182
+ check_output ([str ("pdftocairo" ), "-v" ], stderr = subprocess .STDOUT )
183
183
tools_available .append ("pdftocairo" )
184
184
except :
185
185
pass
@@ -194,8 +194,7 @@ def cairo_convert(pdffile, pngfile, dpi):
194
194
cmd = [str ("pdftocairo" ), "-singlefile" , "-png" ,
195
195
"-r %d" % dpi , pdffile , os .path .splitext (pngfile )[0 ]]
196
196
# for some reason this doesn't work without shell
197
- check_output (cmd , shell = True ,
198
- stderr = subprocess .STDOUT )
197
+ check_output (cmd , shell = True , stderr = subprocess .STDOUT )
199
198
return cairo_convert
200
199
elif "gs" in tools_available :
201
200
def gs_convert (pdffile , pngfile , dpi ):
You can’t perform that action at this time.
0 commit comments