The Syncfusion native Blazor components library offers 70+ UI and Data Viz web controls that are responsive and lightweight for building modern web apps.
.NET PDF framework is a high-performance and comprehensive library used to create, read, merge, split, secure, edit, view, and review PDF files in C#/VB.NET.
I have a Syncfusion.Pdf.PDFDocument object. When I access doc.LastPage.DrawingWidth and convert this from points to pixels, I get different results on different computers.
On one, I get 718.6667 pixels, while on the other I get 898.3333. Why is this? How is the DrawingWidth determined?
BPBhuvaneswari P Syncfusion Team April 20, 2007 01:43 PM UTC
Hi BenT,
I have tested this issue using the below code
PDFDocument pdf = new PDFDocument();
//Point to Pixel SizeF size = new Size((int)pdf.Graphics.ConvertUnits(pdf.LastPage.DrawingHeight, PrintUnits.Point , PrintUnits.Pixel ), (int)pdf.Graphics.ConvertUnits(pdf.LastPage.DrawingWidth, PrintUnits.Point, PrintUnits.Pixel ));
I am afraid that I was not able to reproduce the issue. Could you please provide me system configuration of different system you have tested this issue and more details regarding this. So that I would be able to reproduce the issue and investigate further on this issue.
Please let me know if you have any other queries.
Thank you for your interest in Syncfusion products.