hello,
Recently I updated my Kendo version from 2014 to 2017 r2
I try to implemented the pdf export on my Scheduler but when I click on export I got a blank pdf file.
I have a view with style and script:
<style> /* Use the DejaVu Sans font for display and embedding in the PDF file. The standard PDF fonts have no support for Unicode characters. */ .k-scheduler { font-family: "DejaVu Sans", "Arial", sans-serif; } /* Hide toolbar, navigation and footer during export */ .k-pdf-export .k-scheduler-toolbar, .k-pdf-export .k-scheduler-navigation .k-nav-today, .k-pdf-export .k-scheduler-navigation .k-nav-prev, .k-pdf-export .k-scheduler-navigation .k-nav-next, .k-pdf-export .k-scheduler-footer { display: none; }</style><script src="@Url.Content("~/Scripts/pako.min.js")"></script><h1 class="titrePlanning">Planning Electro</h1>@Html.Partial("ControlPanel")<div class="wrapper"> <div id="divScheduler"> @(Html.Kendo().Scheduler<Ubaldi.Logisttique.PlanningRDV.Web.Controllers.EventViewModel>() .Name("scheduler") .DateHeaderTemplate("<span class='k-link k-nav-day'>#=kendo.toString(date, 'ddd dd/MM')#</span>") .Selectable(false) .Timezone("Etc/UTC") .Width(1200) .Pdf(pdf => pdf .FileName("Export_PlanningRDV.pdf") .ProxyURL(Url.Action("Pdf_Export_Save", "Scheduler")) ) .Toolbar(t => t.Pdf())
- I also imported Deja Vus font in \Content\fonts\DejaVu
In my contoller:
public ActionResult Pdf_Export_Save(string contentType, string base64, string fileName){ var fileContents = Convert.FromBase64String(base64); return File(fileContents, contentType, fileName);}
I try with and without ProxyUrl and I'm getting the same issue.Do I miss something ?
