How to Export the Angular Diagram as PDFs?
Syncfusion® Angular Diagram component allows users to export diagrams as PDFs.
Include the PrintAndExport module in your project.
Upon exporting, a popup window appears. In the destination tab of the popup window, you can select ‘Save as PDF’, and the diagram will be exported as a PDF.
public options: IExportOptions;
export() {
this.options = {};
this.options.mode = 'Download';
this.options.region = 'Content';
this.diagram.print(this.options);
}
The export methods of diagram provide additional options:
| Options | Description |
| region| Defines which part of the diagram is exported (“Content” or “Page”)|
| mode | Sets the Mode for the file to be downloaded |
| multiplePage | Boolean indicating whether the diagram should be split across multiple pages|
| pageWidth | Width of the PDF page (if multiplePage is true|
| pageHeight | Height of the PDF page (if multiplePage is true)|
Sample: Click Here
Conclusion
I hope you enjoyed about how to export Angular Diagrams as PDFs.
You can refer to our Angular Diagram feature tour page to know about its other groundbreaking feature representations and documentation, and how to quickly get started for configuration specifications. You can also explore our Angular Diagram example to understand how to create and manipulate data. For current customers, you can check out our components from the License and Downloads page. If you are new to Syncfusion®, you can try our 30-day free trial to check out our other controls. If you have any queries or require clarifications, please let us know in the comments section below. You can also contact us through our support forums, Direct-Trac, or feedback portal. We are always happy to assist you!