How to Export the Vue Diagram as PDF?
This article explains how to export the Vue Diagram as a PDF. Syncfusion® Vue 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.
exportItems() {
const printOptions = {
region: 'Content',
mode: 'Download'
};
diagramInstance.print(printOptions);
}
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) |
Refer to the working sample for additional details and implementation: Click Here
Conclusion
We hope you enjoyed learning how to export the Vue Diagram as a PDF.
You can refer to our Vue 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 Vue 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, BoldDesk Support, or feedback portal. We are always happy to assist you!