New to Kendo UI for jQueryStart a free 30-day trial

ExportPDF

methods

Exports the barcode as a PDF file. The result can be saved using kendo.saveAs.

The export operation is asynchronous and returns a promise. The promise will be resolved with a PDF file encoded as a Data URI.

Returns:Promise

A promise that will be resolved with a PDF file encoded as a Data URI.

<div id="barcode"></div>
<script>
    $("#barcode").kendoBarcode({
      value: "BAR",
      width: 300
    });

    var barcode = $("#barcode").getKendoBarcode();
    barcode.exportPDF({ paperSize: "A5", landscape: true }).done(function(data) {
        kendo.saveAs({
            dataURI: data,
            fileName: "barcode.pdf"
        });
    });
</script>
Not finding the help you need?
Contact Support