Posted by a ceTe Software moderator
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.