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

DejaVu fonts not found when exporting PDF

5 Answers 279 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Jose Francisco
Top achievements
Rank 1
Jose Francisco asked on 18 Feb 2021, 04:17 PM

Hello all,

i have been struggling for several days with the export PDF function in MVC Scheduler. When i click the export button i receive a 404 not found in my console. I have already try changing the bundle config, i have moved my files to differents folders, i have included them in my index.cshtml, everything. But i still receive this message, even if my files are on the url that is shown in my console, i really don't know how to make it work. I give you my project folder structure to see if there is something wrong with it. I'm trying it in my development pc.

I hope you can help me, i don't know how to tell my boss that i have spent this amount of hours with this export.

Thank you very much.

5 Answers, 1 is accepted

Sort by
0
Jose Francisco
Top achievements
Rank 1
answered on 18 Feb 2021, 04:19 PM
I attach in here the error messages
0
Aleksandar
Telerik team
answered on 22 Feb 2021, 11:09 AM

Hi Jose,

I tried to reproduce the reported behavior in a sample application and in our demos, but to no avail. Can you send a sample where the issue is reproducible and can be observed? This way I can be of better help.

That said, normally, when static files are not found you need to update the web.config file, as suggested in the SO threads here and here, for example

<system.webServer>
    <staticContent>
      <remove fileExtension=".ttf" />
      <mimeMap fileExtension=".ttf" mimeType="application/octet-stream" />
    </staticContent>
</system.webServer>

I hope the above helps.

Regards,
Aleksandar
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

0
Jose Francisco
Top achievements
Rank 1
answered on 22 Feb 2021, 06:24 PM

Hi Aleksandar,

thanks for your reply. I tried the solution that you have given to me but it still doesn't work. I can't give you a sample project since it's a private project of the enterprise. I have prepared a pdf file with the portions of code that i think are remarkable. I hope you can help me with this information.

Kind regards, 

Francisco.

0
Aleksandar
Telerik team
answered on 24 Feb 2021, 11:58 AM

Hello Jose,

Thank you for the details provided. I tried to reproduce the issue based on the details, but without success. Attached you will find a sample application with the Scheduler and the PDF Export functionality where the fonts are loaded and the PDF exported as expected. Make sure to run a NuGet restore command before starting the application. Can you review it and modify it so the behavior reported is reproducible and send it back to me? This way I will be able to debug locally and investigate the issue further.

Looking forward to hearing back from you.

Regards,
Aleksandar
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

0
Jose Francisco
Top achievements
Rank 1
answered on 15 Mar 2021, 10:42 AM

Hi Aleksandar,

i'm sorry for not replying your last post. One of my colleagues has succeeded with this problem. The files had the extension like this: ".ttf@v=1.1". So, to make it work, he has added the following:

<staticContent>
      <remove fileExtension=".ttf" />
      <mimeMap fileExtension=".ttf@v=1.1" mimeType="application/octet-stream" />
</staticContent>

Thank you very much for your help.

Kind regards,
Francisco.

Tags
Scheduler
Asked by
Jose Francisco
Top achievements
Rank 1
Answers by
Jose Francisco
Top achievements
Rank 1
Aleksandar
Telerik team
Share this question
or