exportPDF

Exports the QRCode 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.

Parameters

options kendo.drawing.PDFOptions (optional)Parameters for the exported PDF file.

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

Example - Exporting a QRCode to a PDF file

<div id="qrCode"></div>
<script>
    $("#qrCode").kendoQRCode({
        value: "mailto:clientservice@kendoui.com"
    });

    var qrCode = $("#qrCode").getKendoQRCode();
    qrCode.exportPDF({ paperSize: "A5", landscape: true }).done(function(data) {
        kendo.saveAs({
            dataURI: data,
            fileName: "QRCode.pdf"
        });
    });
</script>
In this article