static DocumentSize()
        {
            A4_Portrait = new PaperSize(GraphicsUnits.Centimiters, 21.0, 29.7);

            A4_Portrait_NormalMargin = new DocumentSize(A4_Portrait, MarginsSize.Normal);
            A4_Portrait_NarrowMargin = new DocumentSize(A4_Portrait, MarginsSize.Narrow);
        }
 public DocumentSize(PaperSize paperSize, MarginsSize margins)
 {
     this.Margins = margins;
     this.Size = paperSize;
     AvailableArea = new PaperSize(GraphicsUnits.Milimeters, paperSize.WidthMM - (margins.LeftMM + margins.RightMM), paperSize.HeightMM - (margins.TopMM - margins.BottomMM));
 }