[Magick-bugs] [bug] PDF conversion and media box
Stephan Hennig
mailing_list at arcor.de
Wed Jul 18 15:37:02 PDT 2007
Hi,
a PPM image of dimensions 2480x3508 pixels, resp., ISO A4 format at 300
dpi, should be converted to PDF format. The following command first
resizes <file> to the required dimension so that an arbitrary graphic
file can be used.
> convert -resize 2480x3508! file ppm:- |convert -identify -density 300 ppm:- a4.pdf
> ppm:-=>- PPM 2480x3508 2480x3508+0+0 DirectClass 8-bit 1.016u 0:14
According to pdfinfo from the xpdf bundle the media box of the resulting
file a4.pdf is not set to A4 format, but to the original pixel size of
the image, which is way too large. Is this a bug or am I missing some
convert option to get the correct result?
Thanks,
Stephan Hennig
> >pdfinfo -box a4.pdf
> Title: a4.pdf
> Producer: ImageMagick 6.3.4 06/04/07 Q8 http://www.imagemagick.org
> CreationDate: 07/19/07 00:25:32
> ModDate: 07/19/07 00:25:32
> Tagged: no
> Pages: 1
> Encrypted: no
> Page size: 595 x 842 pts (A4)
> MediaBox: 0.00 0.00 2480.00 3508.00
> CropBox: 0.00 0.00 595.00 842.00
> BleedBox: 0.00 0.00 595.00 842.00
> TrimBox: 0.00 0.00 595.00 842.00
> ArtBox: 0.00 0.00 595.00 842.00
> File size: 11675043 bytes
> Optimized: no
> PDF version: 1.3
More information about the Magick-bugs
mailing list