PDF type different when using only first page!

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
bitseeker

PDF type different when using only first page!

Post by bitseeker »

Hi,

i get different values for color type when using following:

when using:

Code: Select all

identify -verbose multipage.pdf

i get :

Code: Select all

Format: PDF (Portable Document Format)
Class: DirectClass
Geometry: 595x842+0+0
Resolution: 72x72
Print size: 8.26389x11.6944
Units: Undefined
Type: ColorSeparation
Endianess: Undefined
Colorspace: CMYK
Depth: 16/8-bit
Channel depth:
  cyan: 8-bit
  magenta: 8-bit
  yellow: 8-bit
  black: 1-bit
Channel statistics:
  cyan:
    min: 0 (0)
    max: 65535 (1)
....
when just using the first page:

Code: Select all

identify -verbose multipage.pdf[0]

i get:

Code: Select all

Format: PDF (Portable Document Format)
Class: PseudoClass
Geometry: 595x842+0+0
Resolution: 72x72
Print size: 8.26389x11.6944
Units: Undefined
Type: Grayscale
Base type: Grayscale
Endianess: Undefined
Colorspace: RGB
Depth: 16/8-bit
Channel depth:
  gray: 8-bit
Channel statistics:
  gray:
    min: 0 (0)
    max: 65535 (1)
    mean: 61871.1 (0.944092)
    standard deviation: 12164.9 (0.185625)
    kurtosis: 13.5452
    skewness: -3.73894
....
i'm using Version: ImageMagick 6.5.4-6 2009-07-25 Q16 OpenMP http://www.imagemagick.org

What i need to do is to make png thumbnails from multipage PDF Files. But right now it results in black and white PNGs, not in colored ones, because i'm using

Code: Select all

convert -thumbnail 80 filename.pdf[0] filename.png
Any solution for this issue?

thx
Post Reply