Hi all,
We are currently using Syncfusion's diagram control on a Nuxt web app. We have been able to get most of the features we want working so far except for the ability to export the diagram as an image. In our methods section of the script part of the page, we have the following method:
exportPDF() {
let diagramObj = document.getElementById('diagram')
let diagramInstance = diagramObj.ej2_instances[0]
let exportOptions = {}
exportOptions.mode = 'Download'
exportOptions.format = 'PDF'
exportOptions.region = 'PageSettings'
exportOptions.fileName = 'Export'
exportOptions.pageHeight = 400
exportOptions.pageWidth = 400
diagramInstance.exportDiagram(exportOptions)
},
This is called by a button. Nothing seems to happen when this method is called though. Is there something we are doing wrong in our code?
Thank you