Use Imagick class to create PDF preview