Posted by a ceTe Software moderator
Hello,
Angle property on ImportedPageData object is used to rotate ImportedPageData when it is placed on a new page. The Angle property does not retrieve the rotation of the page the ImportedPageData is created from.
Unfortunately, there is no other way to check if a page retrieved from an existing PDF is rotated or not without loading it with MergeDocument object. When you create MergeDocument, use MergeOptions.None property to avoid loading extraneous data so the PDF will get loaded faster.
PdfDocument pdf = new PdfDocument("document.pdf");
MergeDocument document = new MergeDocument(pdf, MergeOptions.None);
Thanks,
ceTe software Support Team.