usmanazizgroupdocs
4/17/2017 - 9:13 AM

GetDimensionsPDF.cs

// For complete examples and data files, please go to https://github.com/groupdocs-watermark/GroupDocs.Watermark-for-.NET
using (PdfDocument doc = Document.Load<PdfDocument>(Utilities.MapSourceFilePath (FilePath)))
{
    Console.WriteLine(doc.Pages[0].Width);
    Console.WriteLine(doc.Pages[0].Height);
}