PDF文档的大小,如何使用Spire.PDF将毫米转换为像素?
PDF文档的大小,如何使用Spire.PDF将毫米转换为像素PDF文档的大小,如何使用Spire.PDF将毫米转换为像素?,pdf,size,converter,Pdf,Size,Converter,PDF文档的大小,如何使用Spire.PDF将毫米转换为像素 PdfDocument doc = new PdfDocument(); doc.PageScaling = PdfPrintPageScaling.ActualSize; doc.LoadFromFile("myDocument.pdf"); foreach (PdfPageBase page in doc.Pages) { //Result returns the pi
PdfDocument doc = new PdfDocument();
doc.PageScaling = PdfPrintPageScaling.ActualSize;
doc.LoadFromFile("myDocument.pdf");
foreach (PdfPageBase page in doc.Pages)
{
//Result returns the pixel type. But I want to show in millimeters
Console.WriteLine("PageSize: {0}X{1}", page.Size.Width, page.Size.Height);
}
PDF页面的大小不是以像素表示,而是以点表示
1 inch = 72 points
1 inch = 25.4 mm
这导致:
1 point = 0.352777778 mm