We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

How is doc.LastPage.DrawingWidth determined?

Hi,

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?

Best regards,

1 Reply

BP Bhuvaneswari 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.

Best Regards,
Bhuvaneswari.

Loader.
Live Chat Icon For mobile
Up arrow icon