Skip to content

Commit 8dc4c20

Browse files
author
Kendo Bot
committed
Sync with Kendo UI Professional
1 parent 2a6c589 commit 8dc4c20

File tree

5 files changed

+1704
-1654
lines changed

5 files changed

+1704
-1654
lines changed

docs/api/javascript/dataviz/ui/diagram.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3619,6 +3619,26 @@ Adjusts the diagram size to match the size of the container.
36193619

36203620
Saves the diagram.
36213621

3622+
### saveAsPdf
3623+
3624+
Saves the diagram content as PDF document.
3625+
3626+
#### Returns
3627+
`Promise` A promise that will be resolved when the export completes.
3628+
3629+
#### Example - Exporting a diagram to a PDF document
3630+
3631+
<div id="diagram"></div>
3632+
<script>
3633+
$("#diagram").kendoDiagram({
3634+
shapes: [{
3635+
id: "1"
3636+
}]
3637+
});
3638+
var diagram = $("#diagram").getKendoDiagram();
3639+
diagram.saveAsPDF();
3640+
</script>
3641+
36223642
### saveEdit
36233643

36243644
Saves any changes made by the user.

0 commit comments

Comments
 (0)