Custom Fonts?


#1

I am getting an error, see below. All I am doing is defining a font like this. I have looked at the Edition Types and surely Arial is a true type font.

Please assist asap.

this.tiTableHeading = new TextInfo();

this.tiTableHeading.FontName = “Arial”;

this.tiTableHeading.FontSize = 8;

Error:

Custom font is not supported in this edition. The font name is Arial: Unfortunately, this feature is only available in Enterprise Edition, but your license is for Professional Edition. Please contact Aspose to upgrade your license.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Exception: Custom font is not supported in this edition. The font name is Arial: Unfortunately, this feature is only available in Enterprise Edition, but your license is for Professional Edition. Please contact Aspose to upgrade your license.

Source Error:

Line 122: //string strPdfDocument = System.AppDomain.CurrentDomain.BaseDirectory + reportfile;
Line 123: string strPdfDocument = reportfile;
Line 124: this.apPdfDocument.Save(strPdfDocument, Aspose.Pdf.SaveType.OpenInAcrobat, this.Context.Response);
Line 125: }
Line 126:

Source File: c:\inetpub\appete_root\leavebookings\rptleave.aspx.cs Line: 124

Stack Trace:

[Exception: Custom font is not supported in this edition. The font name is Arial: Unfortunately, this feature is only available in Enterprise Edition, but your license is for Professional Edition. Please contact Aspose to upgrade your license.]
Aspose.Pdf.License.a(a A_0, String A_1)
Aspose.Pdf.PdfText.aa.a(String A_0, String A_1, Int32 A_2, Boolean A_3, Boolean A_4, String A_5, Boolean A_6)
Aspose.Pdf.Xml.z.a(Pdf A_0, Section A_1, Table A_2, Row A_3, Cell A_4, Text A_5, String A_6, a A_7, y A_8)
Aspose.Pdf.Xml.b.a(Pdf A_0, Section A_1, Table A_2, Row A_3, Cell A_4, Text A_5, a A_6, y A_7, Boolean A_8)
Aspose.Pdf.Xml.j.a(Pdf A_0, Section A_1, Table A_2, Row A_3, Cell A_4, a A_5)
Aspose.Pdf.Xml.ah.a(Pdf A_0, Section A_1, Table A_2, Row A_3, a A_4)
Aspose.Pdf.Xml.am.a(Pdf A_0, Section A_1, Table A_2, a A_3, Boolean A_4)
Aspose.Pdf.Xml.v.a(Pdf A_0, Section A_1, a A_2)
Aspose.Pdf.Xml.au.a(Pdf A_0)
Aspose.Pdf.Xml.ac.a(a A_0, Pdf A_1)
Aspose.Pdf.Pdf.Save(String fileName, SaveType saveType, HttpResponse response)
leavebookings.RptLeave.finalisePDF(String reportfile) in c:\inetpub\appete_root\leavebookings\rptleave.aspx.cs:124
leavebookings.RptLeave.Page_Load(Object sender, EventArgs e) in c:\inetpub\appete_root\leavebookings\rptleave.aspx.cs:220
System.Web.UI.Control.OnLoad(EventArgs e)
System.Web.UI.Control.LoadRecursive()
System.Web.UI.Page.ProcessRequestMain()


#2

Dear APDEV,

Thank you for considering Aspose.

Which version of Aspose.Pdf do you use? Truetype font is not supported in Professional edition in the before, but it is now supported.


#3

Ahhh… yes… I was using an old version…

New version is ok.

Thanks