- path, convert = checkProg('a PDF -> PNG converter', ['convert'])
- if convert != '':
- # check whether convert supports the -define option
- conv_opts = "-define pdf:use-cropbox=true -depth 8"
- if not 'Unrecognized' in cmdOutput('convert ' + conv_opts + ' 2>&1'):
- addToRC(r'\converter pdf png "convert %s pdf:$$i png:$$o" ""' % conv_opts)
- #