Hi.
This is suriya,
Now i have a problem in rendering the output in pdf., i.e., in runtime i display some of the rows in BOLD Font for my comfortable..
but in the output it is rendered correctly., but when i try to take printout or render the output in the pdf means it is display ine the ordinary
font.,
plz rectify my problem very fast..
Bye..
By
Suriya
6 Answers, 1 is accepted
0
Fabio Rocha de Pinho
Top achievements
Rank 1
answered on 22 Apr 2009, 08:39 AM
Hey Telerik guys,
I have this same problem, Visual Studio shows the font in bold format but when I create the pdf, fonts are not bold. I know this is probably a font embedding problem. Is there anyway I can embed a font when creating my pdf? (I'm doing it programatically)
public void ExportToPDF(string reportName, Telerik.Reporting.Report reportToExport)
{
string mimeType = string.Empty;
string ext = string.Empty;
Encoding encoding = Encoding.Default;
byte[] reportBytes = Telerik.Reporting.Processing.ReportProcessor.Render(
"PDF"
, reportToExport
, null
, out mimeType
, out ext
, out encoding);
string fileName = reportName + ".pdf";
FileStream fs = new FileStream(HttpContext.Current.Server.MapPath(fileName), FileMode.CreateNew);
fs.Write(reportBytes, 0, reportBytes.Length);
fs.Close();
fs.Dispose();
}
Thanks in advance, you guys rock!
Fabio
0
Hello Fabio,
Thank you for the kind words - really appreciated.
As for your question - we have not been able to replicate the problem you talk about. For example if you take a look at our Invoice demo report, you would notice that it has some headers set as bold. Exporting to pdf still shows them bold - can you verify that. Otherwise the fonts are embedded into the pdf document by default and this is controlled by the device information setting parameter FontEmbedding.
Regards,
Steve
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Thank you for the kind words - really appreciated.
As for your question - we have not been able to replicate the problem you talk about. For example if you take a look at our Invoice demo report, you would notice that it has some headers set as bold. Exporting to pdf still shows them bold - can you verify that. Otherwise the fonts are embedded into the pdf document by default and this is controlled by the device information setting parameter FontEmbedding.
Regards,
Steve
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Fabio Rocha de Pinho
Top achievements
Rank 1
answered on 22 Apr 2009, 10:02 AM
Hi Steve,
Thanks for the fast reply.
I forgot to mention, I'm using a non-standard font, called "Frutiger LT 55 Roman" (I had to include this .ttf in windows folder so it would show up as an option under Font Name, on the properties panel). Then, in design mode it works as expected, but not on the rendered PDF. Default fonts, as Arial behave as expected.
Any thoughts?
Thanks again.
Fabio
Thanks for the fast reply.
I forgot to mention, I'm using a non-standard font, called "Frutiger LT 55 Roman" (I had to include this .ttf in windows folder so it would show up as an option under Font Name, on the properties panel). Then, in design mode it works as expected, but not on the rendered PDF. Default fonts, as Arial behave as expected.
Any thoughts?
Thanks again.
Fabio
0
Hi Fabio,
Thank you for the additional information. I've installed the font in question on my machine and tested this - indeed it would seem like the bold text looks almost identical to the one that is not bold. If you look at the attached pdf and screenshot you would notice that in the pdf's embedded fonts collection we've properly passed information for bold font, and still the Adobe Reader shows it almost identically. There is not much we can do from here, as this would seem like a font or Adobe Reader's problem. I'm pretty confident that if you use Adobe Professional to create manually a document with this font, it would behave in the same way.
Best wishes,
Steve
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Thank you for the additional information. I've installed the font in question on my machine and tested this - indeed it would seem like the bold text looks almost identical to the one that is not bold. If you look at the attached pdf and screenshot you would notice that in the pdf's embedded fonts collection we've properly passed information for bold font, and still the Adobe Reader shows it almost identically. There is not much we can do from here, as this would seem like a font or Adobe Reader's problem. I'm pretty confident that if you use Adobe Professional to create manually a document with this font, it would behave in the same way.
Best wishes,
Steve
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Fabio Rocha de Pinho
Top achievements
Rank 1
answered on 24 Apr 2009, 01:44 PM
Hi Steve,
It might indeed be something in the font. Since it's being embedded already.
Well, Thanks for your support this week.
keep up the good work
Fabio
It might indeed be something in the font. Since it's being embedded already.
Well, Thanks for your support this week.
keep up the good work
Fabio
0
Narmatha P
Top achievements
Rank 1
answered on 08 May 2010, 11:44 AM
Hello,
Please guide me. How to embed a different font in report for pdf output?
Please guide me. How to embed a different font in report for pdf output?