I am using the Rotation attribute of PdfPageBase class. This seems to correctly provide the original orientation of the scan (from the scanner for example). However, if I take a PDF file with a reported rotation of 90º, load it into Adobe Acrobat and rotate the document by 90º and then load the document into my software again, the angle of rotation still registers as 90º rather than the 180º that I was expecting.
Below is a code extract:
- Code: Select all
PdfPageBase page = pdfDoc.Pages[pdfbCurrent.iPageNumber - 1];
PdfPageRotateAngle pdfAngle = page.Rotation;
if (!pdfbCurrent.blPageHeightAdjusted)
{
switch (page.Rotation)
{
All help appreciated.
Darren