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

Margins of PdfDocument()

Thread ID:





103609 May 16,2012 01:14 PM UTC May 17,2012 05:39 AM UTC WPF 1
Tags: PDF
Asked On May 16, 2012 01:14 PM UTC


I have that issue about the margins of my document. 
Inside of my document, there is a PdfGrid()
The left & right margins are never equals. The left margin is always smaller than the right one.
   PdfDocument _iDocDesc = new PdfDocument();
                                /* Set margins */
                                _iDocDesc.PageSettings.Margins.Bottom = 11f;
                                _iDocDesc.PageSettings.Margins.Top = 18f;
                                _iDocDesc.PageSettings.Margins.Left = 22f;
                                _iDocDesc.PageSettings.Margins.Right = 22f;

Geetha M [Syncfusion]
Replied On May 17, 2012 05:39 AM UTC

Hi Fakir,

Thank you for your interest in Syncfusion products.

I am afraid that I was not able to reproduce the problem. I created a simple sample using your code snippet and it generated PDF with equal width for left and right margins. I had placed the sample in the link below. Could you please try it and send me the modified sample if you still see the problem?





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

or the page will be automatically redirected to 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