Hi,
We have setup a test environment with Telerik UI for ASP.NET MVC and it seems to be working fine. Our steps are as follow:
1. Install Telerik UI for ASP.NET MVC;
2. Start Visual Studio, using "Telerik ASP.NET MVC Application" project template to create a new project;
3. Select "Menu and Grid" style;
4. Add "EO.Pdf.Mvc.MVCToPDF.RegisterFilter(typeof(GlobalFilters));" to FilterConfig.RegisterGlobalFilters;
5. Add RenderAsPDF attribute to the Index controller method;
We then run the page and the PDF file is created correctly.
Note that a noticeable difference between the PDF rendering and a typical browser rendering is that the PDF render uses a much narrower "window" (due to the fact that a PDF page is typically much narrower than a browser window). Such narrower rendering window would often trigger the "mobile layout" of the page. As a test, you can simulate such result by resizing your browser window to a much narrow window and see if you see the same result.
It is possible for you to use a wider rendering window for EO.Pdf by setting HtmlToPdf.Options.ZoomLevel to a value less than 1. For example, you can add the following code in your controller:
Code: C#
HtmlToPdf.Options.ZoomLevel = 0.5f;
This will reduce the contents to half of the original size (for example, text will be 50% of its original size) but have the net effect of fitting more contents per page, which effectively increases the rendering window's pixel width.
If you still have problems, please try to isolate the problem into a test project and send us the test project. Once we have that we will be happy to investigate further. See here for more information on sending test project to us:
https://www.essentialobjects.com/forum/test_project.aspxThanks!