Esempio n. 1
0
 XSize CalcPageSize(PageSetup pageSetup)
 {
     return new XSize(pageSetup.PageWidth.Point, pageSetup.PageHeight.Point);
 }
Esempio n. 2
0
 //-----------------------------------
 public static PageSetup NewDefaultPageSetup()
 {
     PageSetup p = new PageSetup();
     p.PageFormat = PageFormat.Letter;
     p.SectionStart = BreakType.BreakNextPage;
     p.Orientation = Orientation.Portrait;
     //p.PageWidth = "21cm";
     //p.PageHeight = "29.7cm";
     p.TopMargin = "0.5cm";
     p.BottomMargin = "1cm";
     p.LeftMargin = "0.5cm";
     p.RightMargin = "0.5cm";
     p.HeaderDistance = "1.25cm";
     p.FooterDistance = "1.25cm";
     p.OddAndEvenPagesHeaderFooter = false;
     p.DifferentFirstPageHeaderFooter = false;
     p.MirrorMargins = false;
     p.HorizontalPageBreak = false;
     return p;
 }
Esempio n. 3
0
        PageOrientation CalcPageOrientation(PageSetup pageSetup)
        {
            PageOrientation pageOrientation = PageOrientation.Portrait;
            if (_currentSection.PageSetup.Orientation == Orientation.Landscape)
                pageOrientation = PageOrientation.Landscape;

            return pageOrientation;
        }
Esempio n. 4
0
 internal PageSetupRenderer(DocumentObject domObj, RtfDocumentRenderer docRenderer)
     : base(domObj, docRenderer)
 {
     this.pageSetup = domObj as PageSetup;
 }