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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How is doc.LastPage.DrawingWidth determined?

Thread ID:





59686 Apr 19,2007 06:55 PM UTC Apr 20,2007 01:43 PM UTC WinForms 1
Tags: PDF
Ben Tsai
Asked On April 19, 2007 06:55 PM UTC


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,

Bhuvaneswari P [Syncfusion]
Replied On 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,


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon