I am exporting some images using ExportPage and ExportThumbnail. If I have an image page stored with a rotation angle of 90, 180, or 270, when using ExportThumbnail, I retrieve and set the rotation angle based on the ImageRotationAngle from the PageInfo object. The thumbnail exports correctly with the proper rotation:
Dim de As New DocumentExporter de.PageFormat = DocumentPageFormat.Png de.RotationAngle = pi.ImageRotationAngle * 100 de.ExportThumbnail(d, CInt(pg), mystream)
However, when I use the same methodology to export a full image page, I set the RotationAngle and then use ExportPages method, but I get the incorrect rotation:
de.RotationAngle = pi.ImageRotationAngle * 100 de.ExportPages(d, New PageSet(pg), mystream)
In all cases, the thumbnail matches the expected appearance, but the ExportPages method seems to only match the thumbnail at RotationAngle 0. It seems that the ExportPages method automatically applies the ImageRotationAngle while the ExportThumbnail method does not.
Please advise if this is a bug or a "feature" of DocumentExporter.