
You can export the Calendar using the exportAs() method on the client side.
Supported export formats:
JPEG
PNG
SVG
You can also embed the output image in a PDF document.
This feature is available since version 8.4.
JavaScript
<div id="dp"></div>
<div>
<button id="download-button">Download</button>
</div>
<script type="text/javascript">
var dp = new DayPilot.Calendar("dp");
// ... config
dp.init();
$(document).ready(function() {
$("#download-button").click(function(ev) {
ev.preventDefault();
dp.exportAs("jpeg").download();
});
});
</script>
Tutorial
Availability
Availability of this feature in DayPilot editions:
| Lite | Pro | |
|---|---|---|
| DayPilot for JavaScript | ||
| DayPilot for ASP.NET WebForms | ||
| DayPilot for ASP.NET MVC | ||
| DayPilot for Java |
DayPilot