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

Export to PDF throwing error

13 Answers 440 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Ravi Kirpane
Top achievements
Rank 1
Ravi Kirpane asked on 25 Mar 2010, 06:01 PM
We have a multilingual report that generates report in English and Mandarin (Chinese).

Initial generation of the reports works well. The reporting control displays the reports in both languages in html format. When we attempt to export into pdf following error occurs

[NotSupportedException: Font Arial Unicode MS 12 Bold is not supported.]
   Telerik.Reporting.Pdf.Fonts.TrueType.FontReader.GetFontData(Font font, Boolean& isTTC) +466
.....


Additionally though the export to rtf;excel works excellent in either of the languange. We are using resx files for multilingual capabilities.

Any help would be greatly appreciated. Struggling with this issue for a certain time now.

13 Answers, 1 is accepted

Sort by
0
Steve
Telerik team
answered on 29 Mar 2010, 04:44 PM
Hi Ravi Kirpane,

I have not been able to reproduce this with a sample project on my end, so I have attached the exported PDF file (using FontEmbedding=Subset) along with the MS Arial Unicode installed on my machine. Try removing yours, install the attached one, reboot your machine and run my sample project to test if it works.

Best wishes,
Steve
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Ravi Kirpane
Top achievements
Rank 1
answered on 29 Mar 2010, 05:07 PM
Thank you for investing time into this problem We are struggling for a long time.

When you suggest that we install the attached unicodes..... Request guidance on how to go about?

I see .ttf file attached.
0
Ravi Kirpane
Top achievements
Rank 1
answered on 29 Mar 2010, 05:47 PM
Ignore my previous response.
0
Ravi Kirpane
Top achievements
Rank 1
answered on 30 Mar 2010, 03:47 AM
Ok I replaced the font, as suggested.

Your sample works perfectly fine. But even the sample export from the following site 
http://demos.telerik.com/reporting/report-book/demo.aspx

into pdf displays squares.
 
Additionally, the pdf properties page has a "font" section. In that section, it does not list Arial unicode as one of the fonts. Hopefully that is significant information for us to come to a resolution.
0
Steve
Telerik team
answered on 30 Mar 2010, 09:11 AM
Hello Ravi,

This happens due to the font you're using, namely if we take the ProductCatalog report (it is part of the ReportBook demo you pointed us to) as example, the description textbox is set to use Arial font, which does not support Chinese characters. We have never thought of that until you brought that to our attention and we would log this in our todo list for updating.
The resolution is using font that supports Chinese characters, for example Arial Unicode and this is exactly what we're going to do to resolve this.

Best wishes,
Steve
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Ravi Kirpane
Top achievements
Rank 1
answered on 30 Mar 2010, 01:40 PM
To our observation the Arial Unicode is not resolving the issue if the data is triggered by resx files.

We would be very interested in the solution. Please keep us posted.
0
Steve
Telerik team
answered on 02 Apr 2010, 08:47 AM
Hi Ravi,

There is some misunderstanding. If you take a look at the chineselocalization project I've attached in my previous post, you would notice that it uses .resx files for the localization (as it should!).

Regards,
Steve
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
John
Top achievements
Rank 1
answered on 24 Sep 2010, 10:27 AM
Hi

now i get the same problem too.
I download your project and try to Export the Chinese report .
but still jump the error message below.
Font Arial Unicode MS 10 Regular is not supported.
...
[NotSupportedException: Font Arial Unicode MS 10 Regular is not supported.]
   Telerik.Reporting.Pdf.Fonts.TrueType.FontReader.GetFontData(Font font, Boolean& isTTC) +786
   Telerik.Reporting.Pdf.Fonts.TrueType.TrueTypeDescriptor..ctor(Font gdiFont) +448
   Telerik.Reporting.Pdf.Fonts.TrueType.TrueTypeDescriptor..ctor(PdfFont font) +68
   Telerik.Reporting.Pdf.PdfFontTable.GetDescriptor(PdfFont font) +261
...
...

is there any idea to deal with this?
I really need this font type work.
thanks for answer

John
0
Steve
Telerik team
answered on 24 Sep 2010, 04:19 PM
Hi dgnzj chou,

We've made various improvements to the font handling in PDF in the latest Q2 SP1 version, so please upgrade to it and see if the problem persists.
Additionally have in mind the Font Requirements outlined in the Design Considerations for PDF Rendering help article.

Best wishes,
Steve
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Jans
Top achievements
Rank 1
answered on 28 Jun 2016, 02:57 PM

Hi! we're using Telerik Reporting Q2 2015 SP1 (version 9.1.15.731) 

We have a similar issue with regards using third-party fonts which is throwing the same exception error about the font is not supported. It is running on two report servers and one of those server is failing when trying to generate the PDF.

 The third-party font is installed manually by copying it to the system Font folder. The device information for Font Embedding is already to Full just to make sure the installed third party font is embedded in the output PDF.

I was wondering if this is still a known issue?

 

 

0
Katia
Telerik team
answered on 29 Jun 2016, 04:22 PM
Hello AJ,

This is not a known issue. Check the font requirements listed in the Design Considerations for PDF Rendering and double check that the server machine has the font installed on it. Note, that Telerik Reporting works only with TrueType fonts -Font is missing in report designers...".

Also, test upgrading to the newer version of Telerik Reporting to check if this issue was fixed in later releases.

To provide you further suggestions please send us a sample project and information regarding the font you use in a support ticket.


Regards,
Katia
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Nilesh
Top achievements
Rank 1
answered on 02 Jul 2020, 06:34 AM

We are using telerik reporting for generating HTML as well as PDF reports. This time for container version, somehow while generating PDF report, telerik is throwing below error,

System.NotSupportedException: Font Century Gothic 9 Regular is not supported. at Telerik.Reporting.Pdf.Fonts.TrueType.FontReader.GetFontData(Font font, Boolean& isTTC) at Telerik.Reporting.Pdf.Fonts.TrueType.TrueTypeDescriptor..ctor(Font gdiFont) at Telerik.Reporting.Pdf.PdfFontTable.GetDescriptor(PdfFont font) at Telerik.Reporting.Pdf.PdfFontDictionary..ctor(PdfDocument document, PdfFont drawingFont) at Telerik.Reporting.Pdf.PdfFontType0Dictionary..ctor(PdfDocument document, PdfFont font) at Telerik.Reporting.Pdf.PdfFontTable.GetFont(PdfFont font) at Telerik.Reporting.Pdf.PdfPageDictionary.GetFontName(PdfFont font, PdfFontDictionary& fontDictionary) at Telerik.Reporting.Pdf.Rendering.PdfRendererGraphicsState.Update(PdfFont font, Brush brush, Int32 renderMode) at Telerik.Reporting.Pdf.Rendering.PdfRenderer.Update(PdfFont pdfFont, Brush brush, Int32 renderMode) at Telerik.Reporting.Pdf.Rendering.PdfRenderer.DrawString(String text, PdfFont pdfFont, Brush brush, RectangleF rect, Boolean rightToLeft) at Telerik.Reporting.Pdf.Drawing.PdfGraphics.DrawString(String s, Font font, Brush brush, RectangleF rect, StringFormat format) at Telerik.Reporting.ImageRendering.CanvasPdf.DrawRegularChunk(String text, Font font, Brush brush, RectangleF rect, TextFormat textFormat) at Telerik.Reporting.ImageRendering.DocumentBase.WriteTextChunk(String text, RectangleF bounds, IFont font, Color foreground, TextFormat format) at Telerik.Reporting.Writing.HtmlTextWriter.WriteContent(DocumentWriter writer, HtmlTextElement element, ElementPageInfo pageInfo) at Telerik.Reporting.Writing.HtmlContentElementWriter`1.Write(T element, ElementPageInfo pageInfo, DocumentWriter writer) at Telerik.Reporting.Writing.WriteOperationsDispatcher.Visit(HtmlTextElement htmlTextElement) at Telerik.Reporting.Processing.ProcessingElementVisitor.Visit(LayoutElement element) at Telerik.Reporting.Writing.DocumentWriter.Telerik.Reporting.BaseRendering.IWriter.WriteStartElement(LayoutElement element, ElementPageInfo pageInfo) at Telerik.Reporting.Paging.PageElementLayer.AddToPage(IPageHandler handler) at Telerik.Reporting.Paging.PageElementManager.AddToPage(IPageHandler handler) at Telerik.Reporting.Paging.PageCompositionBase.SendPhysicalPages() at Telerik.Reporting.Paging.PageCompositionBase.OutputPage() at Telerik.Reporting.Paging.PageCompositionBase.CreatePages() at Telerik.Reporting.BaseRendering.RenderingExtensionBase.Render(Report report, Hashtable renderingContext, Hashtable deviceInfo, CreateStream createStreamCallback, EvaluateHeaderFooterExpressions evalHeaderFooterCallback) at Telerik.Reporting.Processing.ReportProcessor.RenderCore(ExtensionInfo extensionInfo, IList`1 reports, Hashtable deviceInfo, IRenderingContext renderingContext, CreateStream createStreamCallback) at Telerik.Reporting.Processing.ReportProcessor.ProcessAndRender(String format, ReportSource reportSource, Hashtable deviceInfo, IRenderingContext renderingContext, CreateStream createStreamCallback) at Telerik.Reporting.Processing.ReportProcessor.ProcessAndRenderStateless(String format, ReportSource reportSource, Hashtable deviceInfo, IRenderingContext renderingContext, CreateStream createStreamCallback) at Telerik.Reporting.Processing.ReportProcessor.RenderReport(String format, ReportSource reportSource, Hashtable deviceInfo)

Although I have installed century gothic font on a container and also proof that HTML report working well. Just PDF report throwing font error from telerik.

I looked into telerik blogs but do not understand why this would fail, Links, https://docs.telerik.com/reporting/designing-reports-considerations-pdf https://www.telerik.com/forums/export-to-pdf-throwing-error

Interesting thing is, it works for on premise server but not for container so must be some installation or configuration expected by telerik's pdf report rendering. Please suggest some workarounds.

0
Nilesh
Top achievements
Rank 1
answered on 11 Aug 2020, 07:26 PM
As much as the strange error is, the solution is more weird but works. As I explained in the question, getting this font not supported exception even though font is present under a container and after couple of search I only found one possible answer, that is to move font file somewhere else from "C:\Windows\Fonts" folder and then copy it back to the same folder. Eventually I tried this approach and it worked. 

Followed this post, https://www.itwriting.com/blog/3050-font-does-not-support-style-regular.html

Somehow windows OS has its own way of producing an error and resolving the same :) 
Tags
General Discussions
Asked by
Ravi Kirpane
Top achievements
Rank 1
Answers by
Steve
Telerik team
Ravi Kirpane
Top achievements
Rank 1
John
Top achievements
Rank 1
Jans
Top achievements
Rank 1
Katia
Telerik team
Nilesh
Top achievements
Rank 1
Share this question
or