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.
Unfortunately, activation email could not send to your email. Please try again.

How is doc.LastPage.DrawingWidth determined?

Thread ID:

Created:

Updated:

Platform:

Replies:

59686 Apr 19,2007 02:55 PM Apr 20,2007 09:43 AM Windows Forms 1
loading
Tags: PDF
Ben Tsai
Asked On April 19, 2007 02:55 PM

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,

Bhuvaneswari P [Syncfusion]
Replied On April 20, 2007 09:43 AM

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.

CONFIRMATION

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.

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.

;