Edit this page

Export Whole Pages

RadClientExportManager can export the whole page or a specific DOM element.

To export the whole page to a PDF document, you should pass the jQuery object wrapping the "" DOM element, or the DOM element itself, to the exportPDF client-side method of the RadClientExportManager object. To export to an image or SVG, you should use the exportImage and exportSvg client-side methods.

Example 1: Export the whole page to a PDF document

<div id="foo">Lorem ipsum dolor sit amet</div>

<telerik:RadClientExportManager runat="server" ID="RadClientExportManager1">
    <PdfSettings FileName="MyFile.pdf" />
</telerik:RadClientExportManager>

<input type="button" onclick="exportElement()" value="export" />
<script type="text/javascript">
    function exportElement() {
        var exp = $find("<%= RadClientExportManager1.ClientID %>");
        exp.exportPDF($telerik.$("html"));
    }
</script>