Jos Vos on  wrote...
| 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,
| 
Submit a bug report on the IM bugs forums with links to example images
detailing the problem.

It may be the  postscript generator needs tweeking, to generate postive
bounding boxes.

As for a non-IM solution...
Does the NetPBM command    pnmtops     do the right thing?

This was installed on my fedora system using  netpbm-progs
package.


  Anthony Thyssen ( System Programmer )    <[EMAIL PROTECTED]>
 -----------------------------------------------------------------------------
  At 300 dpi you can tell she's wearing a swimsuit.
  At 600 dpi you can tell it's wet.
  At 1200 dpi you can tell it's painted on.
  I suppose at 2400 dpi you can tell if the paint is giving her a rash.
                                                      -- Joshua R. Poulson
 -----------------------------------------------------------------------------
     Anthony's Home is his Castle     http://www.cit.gu.edu.au/~anthony/
_______________________________________________
Magick-users mailing list
[email protected]
http://studio.imagemagick.org/mailman/listinfo/magick-users

Reply via email to