// https://www.papersizes.org/a-paper-sizes-tstc.htm protected void SetPageSize(PageSize_t size) { if (size == PageSize_t.A0) { this.Width = 84.1; this.Height = 118.9; } else if (size == PageSize_t.A1) { this.Width = 59.4; this.Height = 84.1; } else if (size == PageSize_t.A2) { this.Width = 42.0; this.Height = 59.4; } else if (size == PageSize_t.A3) { this.Width = 29.7; this.Height = 42.0; } else if (size == PageSize_t.A4) { this.Width = 21.0; this.Height = 29.7; } } // End Sub SetPageSize
} // End Constructor public PageSize(PageSize_t size) : this(size, false) { } // End Constructor
} // End Sub SetPageSize public PageSize(PageSize_t size, bool landScape) { SetPageSize(size); this.Landscape = landScape; } // End Constructor