Browser issue with PDF
Posted: 2012-03-01T04:44:13-07:00
What I'm trying to do here is to put a image (kind of a stamp) into a PDF.
When I call a PHP that call a shell script from a browser it doesn't work it shows this message:
The command that I run is this:
the php code:
If I run this from console It works great, even if I call the PHP file from the console it also works fine, other thing is that if instead of a PDF I send an JPG or PNG file it works fine too.
When I call a PHP that call a shell script from a browser it doesn't work it shows this message:
Code: Select all
convert: Missing Null Image List Separator layers Composite @ mogrify.c/MogrifyImageList/7899.
Code: Select all
convert -density 300 -quality 100 -compress fax -monochrome -alpha off "/opt/lampp/htdocs/pdf/upload/$2" null: /opt/lampp/htdocs/pdf/carimboover.png -gravity $3 -compose multiply -layers composite "/opt/lampp/htdocs/pdf/autenticados/$2" 2>&1
Code: Select all
exec("sh /opt/lampp/htdocs/pdf/assinador.sh 2012127444857741000-001 'Flash2.pdf' SouthWest");