Page 1 of 1

Support Using php5-imagick on debian

Posted: 2012-07-03T02:44:53-07:00
by renovazio
Hi to all,

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");
Due to a restriction for italian law, i have to convert files in PDF/A 1b (ISO 19005-1:2005).
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

Re: Support Using php5-imagick on debian

Posted: 2012-07-03T03:29:27-07:00
by magick
Set your image format to PDFA instead of PDF. The result will fail to validate. We just recently added patches for the result to validate other than the required output intent. That patch is still pending.

Re: Support Using php5-imagick on debian

Posted: 2012-07-03T03:50:14-07:00
by renovazio
Where is published this patch ?
I need also to be able to change Document Proprerties in the PDF while converting, like Document Title, Document Subject and other properties.

Regards

Re: Support Using php5-imagick on debian

Posted: 2012-07-03T04:06:19-07:00
by magick
The patch is not released yet. It will be available within a week as ImageMagick 6.7.8-1. ImageMagick gets the document title from the image filename and saves the PDF with a XMP profile. You'll need some other program to tweak the XMP profile to change or set metadata.

Re: Support Using php5-imagick on debian

Posted: 2012-07-03T04:40:09-07:00
by renovazio
Many Thanks.
Very quick support.
I'm surprised.

Regards.