The following code shows how to display the default PDF export dialog provided by NOV:
Showing the default PDF Export dialog |
Copy Code
|
---|---|
NDrawingPdfExporter imageExporter = new NDrawingPdfExporter(drawingView.Content); imageExporter.ShowDialog(DisplayWindow, true); |
The following code shows a save PDF file dialog, which allows the user to export the active page of a drawing to the selected PDF file:
Exporting the active page of a drawing directly to a file selected from a Save File dialog |
Copy Code
|
---|---|
NDrawingPdfExporter pdfExporter = new NDrawingPdfExporter(drawingView.Content);
pdfExporter.SaveAsPdf();
|