InputPdfPage height / width dimensions

InputPdfPage height / width dimensions

Forum member · Jul 18, 2018
Does anyone know what the dimensions are for the height and width of the InputPDFPage object? Here is a link to the Height property, but it doesn't specify the dimensions. http://www.dynamicpdf.com/Support/NET_Help_Library_18_05/?DynamicPDFPrintManager.html#ceTe.DynamicPDF.Printing~ceTe.DynamicPDF.Printing.InputPdfPage~Height.html I'm trying to determine if the PDF being loaded is a specific size. Thanks,

Re: InputPdfPage height / width dimensions

Support · Jul 19, 2018
Hello, DynamicPDF PrintManager for .NET returns the page dimensions in points. There are 72 points in an inch and 28.35 points in a centimeter: • 1 point = 1/72 inch = 0.353 mm • 18 points = 1/4 inch • 72 points = 1 inch • 28.35 points = 1 centimeter • 12 points = 1 pica = 1/6 inch Below is the code to retrieve the page dimensions in inches. InputPdf pdf = new InputPdf(@"Path for input PDF"); //The PrintManager API returns the dimensions in Points double pageWidth = pdf.Pages[0].Width; double pageHeight = pdf.Pages[0].Height; //Converting Points to inches= points/72. double widthinInches = pageWidth / 72; double heightinInches = pageHeight / 72; Thanks, ceTe Software Support Team.