I have a tif page I am converting to PDF
I need to rotate the image 180 degrees.
I have tried the following code (I have a snippet of the code) and it does not seem to work.
// Instantiate BitMap object with loaded image stream
System.Drawing.Bitmap b = new System.Drawing.Bitmap(mystream);
// Set margins so image will fit, etc.
page.PageInfo.Margin.Bottom = 0;
page.PageInfo.Margin.Top = 0;
page.PageInfo.Margin.Left = 0;
page.PageInfo.Margin.Right = 0;
page.CropBox = new Aspose.Pdf.Rectangle(0, 0, b.Width, b.Height);
// Create an image object
Aspose.Pdf.Image image1 = new Aspose.Pdf.Image();
// Add the image into paragraphs collection of the section
// Set the image file stream
image1.ImageStream = mystream;
page.Rotate = Rotation.on180;
// Save resultant PDF file
The image in the PDF is not rotated.
Can you point me to what I am doing wrong?