"-info" switch problem...
Posted: Wed Dec 25, 2013 6:59 pm
hi all,
I'm using linux version of nconvert to convert PDF to PNG on the fly using php exec command and ghostscript and it works just fine as long as I don't specify "-info" as a part of command line. it looks something like this:
$move_to is name of PDF file I want to converted, and $cvt_res should be array filled with result of conversion (and lot of other stuff too). That is true if "-info" switch is specified, otherwise $cvt_res contains just copyright info wich is of no special use. I need this to test if conversion passed ok in $cvt_res[5] (if I'm not wrong). But once I specify "-info" switch like:
nconvert will not convert my files anymore. it seems like "-info" switch turns off actual conversion and works just like info.
Any hints or clues maybe?
Thanx...
I'm using linux version of nconvert to convert PDF to PNG on the fly using php exec command and ghostscript and it works just fine as long as I don't specify "-info" as a part of command line. it looks something like this:
Code: Select all
<?php exec('/usr/local/nconvert -overwrite -out png -dpi 300 -ratio -resize 600 0 -colors 256 '.$move_to, $cvt_res); ?>
Code: Select all
<?php exec('/usr/local/nconvert -info -overwrite -out png -dpi 300 -ratio -resize 600 0 -colors 256 '.$move_to, $cvt_res); ?>
Any hints or clues maybe?
Thanx...