Page 1 of 1

using html2ps php version with imagemagick

Posted: 2012-05-09T08:26:34-07:00
by jpotter
Is there any special configuration I must do to have imagemagick (convert utility) use the php version of html2ps? The php version appears to have cleaner output then the perl-script version.

Re: using html2ps php version with imagemagick

Posted: 2012-05-10T16:49:13-07:00
by anthony
The html2ps is executed through a delgate
You can IM's use of the command using

Code: Select all

convert -list delegate  | grep html2ps

Code: Select all

        htm =>          "html2ps" -U -o "%o" "%i"
       html =>          "html2ps" -U -o "%o" "%i"
      shtml =>          "html2ps" -U -o "%o" "%i"
Which means html is converted to something IM will automatically recognise (postscript). IM then uses a "ghostscript" delegate to convert that to a raster image.


Check what your PHP version of IM is using, compared to the CLI (probably on another machine)
Also check versions of IM. ghostscript, and html2ps, as one may have 'improvements'.