Client Export Manager currently exports the WYSWG and currently does not include page resizing. A great change to this control would be to include the ability to define the page size and content alignment. When this was asked during the webinar, the recommendation was to not use the Export Manager and instead do my own coding of the export to PDF using the PDF Processing tools. Rather than coding the PDF conversion whole cloth, if the Client Export Manager should generate the PDF and pass it off to PDF Processing for fine-grain control over page size.
Hi there,
RadClientExplorer manager actually handles page resizing since it exports the visible part of the page.
Take for example this sample where the div which we are about to export to PDF has width of 100%:
<div id="foo" style="width:100%;border: 1px solid red;">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.$("#foo"));
}
</script>
If we resize the page and narrow its width, the div width will be also reduced and the reduced width will be exported too.
After that if we resize the page to full screen and export the div you'll see that its size changes too in the exported pdf file.
And that's not all, you can further customize the exported contents prior the export with the help of the .k-pdf-export class. You can find an example at https://docs.telerik.com/devtools/aspnet-ajax/controls/clientexportmanager/how-to/change-the-exported-content-before-export. This class will allow you to change the dimension of the div as you wish prior the export.
Regards,
Rumen
Progress Telerik
If the document processing is the way going forward all controls PDF export should be handled by document processing libraries. Starting with Editor. As we do more complex projects that include creating books in PDF using Telerik controls this feature makes it stand apart from the rest.