Hi,

For some application I generate a PPM image, then I do:

  convert -page A4+0+0 -border 150x150 -bordercolor white xxx.ppm xxx.ps2
  mv xxx.ps2 xxx.ps
  ps2pdf -sPAPERSIZE=a4 xxx.ps

This worked with ImageMagick 5.5.6 (as included in RHEL3), but with
newer versions (I tried it with ImageMagick 6.0.7.1 (RHEL4) and 6.2.8.0
(RHEL5)) the PDF only contains (the correct number of) empty pages :-(.
Doing ps2pdf on other PS files (e.g. generated by enscript) works ok.

Comparing the .ps2 files, I see for example in the diff output:

(old, working version)

< %%BoundingBox: 0 0 595 835
< %%HiResBoundingBox: 0 0 595 835
< %%PageBoundingBox: 0 0 595 835

(new, not working version)

> %%BoundingBox: 0 -1161 595 -326
> %%HiResBoundingBox: 0 -1162 595 -327
> %%PageBoundingBox: 0 -1162 595 -327

Just patching these BoundingBoxes to the first values doesn't help.
I guess it just "projects" the page outside the page bounding box.

As I'm slowly running out of systems where I have RHEL3 with the old
version of ImageMagick installed, I'm really seeking for a solution now.

Any suggestions?
Thanks,

--
--    Jos Vos <[EMAIL PROTECTED]>
--    X/OS Experts in Open Systems BV   |   Phone: +31 20 6938364
--    Amsterdam, The Netherlands        |     Fax: +31 20 6948204
_______________________________________________
Magick-users mailing list
[email protected]
http://studio.imagemagick.org/mailman/listinfo/magick-users

Reply via email to