PdfPageEditor.GetPageSize
PdfPageEditor.GetPageSize method
Returns the page size of the specified page.
public PageSize GetPageSize(int page)
Parameter | Type | Description |
---|---|---|
page | Int32 | Page index. Document pages are numbered from 1. |
Return Value
Result is instance of PageSize. Use Width and Height properties of the returned object to get page width and height.
Examples
The following example demonstrates using of GetPageSize method:
PdfPageEditor editor = new PdfPageEditor();
editor.BindPdf("sample.pdf");
PageSize size = editor.GetPageSize(1);
Console.WriteLine("Size of 1st page : " + size.Width + " x " + size.Height);
See Also
- class PageSize
- class PdfPageEditor
- namespace Aspose.Pdf.Facades
- assembly Aspose.PDF