I have a website where clients can upload documents (images or documents of various type [pdf,png,jpg,tiff and others]).
I actually convert any file uploaded in PDF format using this syntax:
Code: Select all
$image = new Imagick();
$image->readImage("file_uploaded.jpg");
$image->setCompression(Imagick::COMPRESSION_JPEG);
$image->setCompressionQuality(60);
$image->setImageFormat('PDF');
$image->writeImage("fileconverted.pdf");
I need also to be able to change Document Proprerties in the PDF while converting, like Document Title, Document Subject and other properties.
So is there any way to do this with imagick.
Thanks in advance