PDFsharp & MigraDoc Foundation

PDFsharp - A .NET library for processing PDF & MigraDoc Foundation - Creating documents on the fly
It is currently Sat Apr 27, 2024 12:50 pm

All times are UTC


Forum rules


Please read this before posting on this forum: Forum Rules



Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: Tue Mar 31, 2009 9:19 pm 
Offline

Joined: Tue Feb 24, 2009 5:56 pm
Posts: 4
I have set the document properties:

Code:
Document doc = new Document();
doc.DefaultPageSetup.LeftMargin = Unit.FromInch(0.75);
doc.DefaultPageSetup.MirrorMargins = true;
doc.DefaultPageSetup.TopMargin = Unit.FromInch(0.75);
...
// Add 1 section with a bunch of paragraphs...
...


and this works... for Page 1. On page 2, it seems to revert to the default margins. Am I doing something wrong?

TIA!

-mdb


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Wed Apr 01, 2009 7:28 am 
Offline
PDFsharp Guru
User avatar

Joined: Mon Oct 16, 2006 8:16 am
Posts: 3096
Location: Cologne, Germany
MirrorMargins means that left margin is used on right side and vice versa on even pages.

This is meant for booklets - left rather means "inner" and right means "outer" if MirrorMargins is set.

So what you want probably requires setting MirrorMargins to false and setting right and bottom margins to the same values as left and top margins respectively.

_________________
Regards
Thomas Hoevel
PDFsharp Team


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 381 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Privacy Policy, Data Protection Declaration, Impressum
Powered by phpBB® Forum Software © phpBB Group