convert -density 300 output.pdf agreement.jpg
convert.im6: not authorized `output.pdf' @ error/constitute.c/ReadImage/454.
convert.im6: no images defined `agreement.jpg' @ error/convert.c/ConvertImageCommand/3044.
sudo vi /etc/ImageMagick*/policy.xml
policy domain="coder" rights="none" pattern="PDF"
# to
policy domain="coder" rights="read|write" pattern="PDF"
After this conversion should work and it applies to other file types in policy.xml
imagemagick, convert, pdf, authorizedyou, ll, edit, xml, density, output, jpg, im, authorized, constitute, readimage, images, defined, convertimagecommand, sudo, vi, etc, domain, quot, coder, conversion, applies,