Thomas Hoevel wrote:
Hi!
I don't see anything in your code that is obviously wrong.
A quote from the help file on SelectActiveFrame:
"Selects the frame specified by the dimension and index. The possible values of the dimensionID parameter are properties of the FrameDimension. These can be used to identify an image by its time, resolution, or page number."
Are you sure the first dimension is page number?
BTW: You could make all page a fixed size (e.g. A4) and use DrawImage with size parameters to scale the image accordingly (it takes three lines of code to scale the image while maintaining the aspect ratio). But that should make no difference with respect to weird colours.
Thanks for your Reply Thomas.
It appears that the first dimension is page number and that is working fine.
I dont want to fix the page size, the file could have mix page sizes as well as resolution and colour mode (B&W, colour, Gray).
so basically, i need to read each page size and drawimage with the same dimensions. but i am getting strange results. for example, my A4 sample has 3 pages, Gray (8BIT 200 DPI), Colour (24BIT 200DPI) and B&W (1BIT 300DPI). the gray and B&W are ok, proper dimension. the width of the colour page is squished together very Narrow. Any ideas why that might be happening? is there a way i can send you the tiff sample and the PDF results?
Thanks for your help, it is driving me crazy.