I recently created a personalized Edit form using OrgChartJS by Balkan, but now I'm facing difficulties in exporting that edit form to PDF. Can anyone provide guidance or assistance?
Here is a snippet from my JS file:
var chart;
fetch('url', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'Accept': 'application/json'
},
body: JSON.stringify({ rootId: rootNodeId })
})
.then(response => response.json())
// Rest of the script continues...
This is an excerpt from my ASPX File:
<div id="editForm" style="
position:absolute;
top:50%;
left:50%;
margin-top:-50px;
// Rest of the HTML code follows...
The export PDF option was previously available in default edit forms, but I am currently struggling to integrate this feature with my customized edit form (which includes HTML, CSS, and images). Any insights or suggestions on how to achieve this would be greatly appreciated.