This is a migrated thread and some comments may be shown as answers.

PDF exporter failing

2 Answers 121 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Grant
Top achievements
Rank 3
Iron
Iron
Veteran
Grant asked on 19 Aug 2016, 10:00 AM

Hi, 

Im trying to export a grid to PDF but Im constantly having problems with it.

In Chrome
If I import kendo.common.min.css from the kendo cdn, everything works as it should (PDF exported successfully). As soon as I change to my local copy, it fails, complaining that it cannot find "styles/fonts/DejaVu/DejaVuSans.ttf" even though the file IS there.

In IE
Always fails, complaining about "Access is Denied" in the kendo.all.min.js. 

I just updated my kendo files this morning to version 2016.2.714. Unfortunatly I have been unable to duplicate the issue in a Dojo environment so I dont know how to proceed. Please advise.

Kind Regards,
Grant

2 Answers, 1 is accepted

Sort by
0
Accepted
Stefan
Telerik team
answered on 23 Aug 2016, 12:25 PM
Hello Grant,

The issues in Chrome and Internet explorer are related to CORS (cross-domain Ajax) restrictions:

http://docs.telerik.com/kendo-ui/framework/drawing/drawing-dom#known-limitations

Once the font files are uploaded to the server that will host the application, the pdf export should work as expected.

If this is not the case, please send a locally runnable project so we can investigate it further. 

Regards,
Stefan
Telerik by Progress
 
Get started with Kendo UI in days. Online training courses help you quickly implement components into your apps.
 
0
Antony
Top achievements
Rank 1
Iron
answered on 07 Dec 2017, 09:27 AM
The @font statement in your case file looks for the font in the same folder as it is in. So if it is in your styles folder, and your font is in the fonts folder, try starting your path at fonts rather than styles. This worked for me - but I put the font directly in my Contents folder and so have no path in my @font SRC statement.
Tags
Grid
Asked by
Grant
Top achievements
Rank 3
Iron
Iron
Veteran
Answers by
Stefan
Telerik team
Antony
Top achievements
Rank 1
Iron
Share this question
or