To configure how a drawing page should be printed or exported to PDF use the PrintLayout property of the page. The following code demonstrates how to configure export of the whole drawing page to a single page of size A4:
Configuring Print Layout |
Copy Code
|
---|---|
NPagePrintLayout printLayout = drawingView.ActivePage.PrintLayout;
printLayout.PageSize = new NPaperSize(ENPaperKind.A4);
printLayout.PageColumns = 1;
printLayout.PageRows = 1;
|
Explore the other properties of the page's PrintLayout if you want to further customize the printing / export to PDF.