Hi again,
I've got some questions...
I wanted to get some reassurance that imagemagick has good coverage of the images types in my pdfs. So I took a typical pdf, and ran the convertpdf sample over it.
The good news is that it passed.
My next step was to determine the readsettings appropriate to read those images.
Having looked at the source code it's not obvious to me that images read from a pdf are read in the same way as an image from a distinct stream.
For example with my code, I have access to the image body and metadata about the image. I expect to be able to use the metadata to fill in the readSettings and then make a new MagickImage with those bytes and readSettings.
When reading from a pdf the image format is reported as pdf, rather than the specific type (eg jpeg2000)
Are there any notes on how to read images directly from a pdf, with appropriate readSettings, rather than using the technique in the convertpdf sample?
Does that make sense? :-)
Thanks
Martin
I've got some questions...
I wanted to get some reassurance that imagemagick has good coverage of the images types in my pdfs. So I took a typical pdf, and ran the convertpdf sample over it.
The good news is that it passed.
My next step was to determine the readsettings appropriate to read those images.
Having looked at the source code it's not obvious to me that images read from a pdf are read in the same way as an image from a distinct stream.
For example with my code, I have access to the image body and metadata about the image. I expect to be able to use the metadata to fill in the readSettings and then make a new MagickImage with those bytes and readSettings.
When reading from a pdf the image format is reported as pdf, rather than the specific type (eg jpeg2000)
Are there any notes on how to read images directly from a pdf, with appropriate readSettings, rather than using the technique in the convertpdf sample?
Does that make sense? :-)
Thanks
Martin