I want to use calibri font to the pdf which i’m generating using C#.net. Can you please send me a sample on how to implement this.I’m using Xml template, and font is handled in c# code. As of now to use Times roman font i’m using the below code.
In case you still face the same problem, please share the source XML file and the code snippet which you are using so that we can test the scenario at our end. We are sorry for this inconvenience.
Please note that the Generator namespace was introduced in Aspose.Pdf for .NET since the release of version 6.0.0. As you have been using v4.2, simply remove Generator from the code lines and try executing the code. You may consider visiting the following link for instructions on Migration from Aspose.Pdf Pre-6.x (In your case, the order will be reversed).
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
Enables storage, such as cookies, related to analytics.
Sets consent for sending user data to Google for online advertising purposes.
Sets consent for personalized advertising.
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
More info
Enables storage, such as cookies, related to analytics.
Enables storage, such as cookies, related to advertising.
Sets consent for sending user data to Google for online advertising purposes.
Sets consent for personalized advertising.
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
More info
Enables storage, such as cookies, related to analytics.
Enables storage, such as cookies, related to advertising.
Sets consent for sending user data to Google for online advertising purposes.