PdfPageEditor.GetPageRotation

طريقة PdfPageEditor.GetPageRotation

تعيد دوران الصفحة المحددة.

public int GetPageRotation(int page)
المعاملالنوعالوصف
pageInt32فهرس الصفحة. يتم ترقيم صفحات الوثيقة من 1.

قيمة الإرجاع

دوران الصفحة بالدرجات.

أمثلة

المثال التالي يوضح كيفية الحصول على دوران الصفحة:

PdfPageEditor editor = new PdfPageEditor();
editor.BindPdf("sample.pdf");
int rotation = editor.GetPageSize(1);
Console.WriteLine("Rotation of 1st page : " + rotation + " degrees");        

انظر أيضًا