Posted by a ceTe Software moderator
Hello,
Here is the sample code that shows how to retrieve the height and width of a PDF page.
InputPdf doc = new InputPdf("Input.pdf");
PdfRasterizer rast = new PdfRasterizer(doc);
//Get the height and width of the page.
float width = (float)doc.Pages[0].Width;
float height = (float)doc.Pages[0].Height;
rast.Draw("documentd.tiff", ImageFormat.TiffWithLzw, DpiImageSize.Dpi300);
Thanks,
ceTe Software Support Team.