Specifies paper size.
[Visual Basic]
Public Enum PaperSize
[C#]public enum PaperSize
Example
Changes page setup (section formatting) for all sections in the document.
[C#]
Document doc = new Document(MyPath + "Welcome.xml");
Range range = doc.GetRange();
PageSetup ps = range.PageSetup;
ps.PaperSize = PaperSize.A3;
ps.Orientation = Orientation.Landscape;
ps.TopMargin = 72;
ps.BottomMargin = 72;
ps.RightMargin = 54;
ps.LeftMargin = 54;
doc.Save(MyPath + "ExRange.PageSetupAllDocument Out.xml");
[Visual Basic]
Dim doc As New Document(MyPath & "Welcome.xml")
Dim range As Range = doc.GetRange()
Dim ps As PageSetup = range.PageSetup
ps.PaperSize = PaperSize.A3
ps.Orientation = Orientation.Landscape
ps.TopMargin = 72
ps.BottomMargin = 72
ps.RightMargin = 54
ps.LeftMargin = 54
doc.Save(MyPath & "ExRange.PageSetupAllDocument Out.xml")
Members
| Member Name | Description | Value |
| A3 | 297 x 420 mm. | 0 |
| A4 | 210 x 297 mm. | 1 |
| A5 | 148 x 210 mm. | 2 |
| B4 | 250 x 353 mm. | 3 |
| B5 | 176 x 250 mm. | 4 |
| Executive | 7.25 x 10.5 inches. | 5 |
| Folio | 8 x 13 inches. | 6 |
| Ledger | 11 x 17 inches. | 7 |
| Legal | 8.5 x 14 inches. | 8 |
| Letter | 8.5 x 11 inches. | 9 |
| EnvelopeDL | 110 x 220 mm. | 10 |
| Quarto | 8 x 10 inches. | 11 |
| Statement | 8.5 x 5.5 inches. | 12 |
| Tabloid | 11 x 17 inches. | 13 |
| Paper10x14 | 10 x 14 inches. | 14 |
| Paper11x17 | 11 x 17 inches. | 15 |
| Custom | Custom paper size. | 16 |
Requirements
Namespace: Aspose.Editor.Client
Assembly: Aspose.Editor.Client (in Aspose.Editor.Client.dll)
See Also
Aspose.Editor.Client Namespace