Thanks for contacting support.
When using HtmlFragment, you need to specify the font information using HTML. Please take a look over following code snippet to accomplish your requirement.
com.aspose.pdf.Document doc = new
com.aspose.pdf.Font font =
Page page = doc.getPages().add();
com.aspose.pdf.HtmlFragment fragment =
It was a pleasure to see you on
October 3, 2014. On behalf of all of us
at EHE International, thank you for your continued participation in our Preventive
Medicine and Lifestyle Management Program."+
report details my assessment of your health and recommendations based on the
physical exam, current and historical laboratory results, and a summary of EHE
benefits available to you throughout the year.
I am sending you health information you may find useful in the proactive
management of your health. I encourage
you to familiarize yourself with your reported personal findings and to call me
or members of your EHE health team with your questions or concerns. At the end of the report, I described a few
programs that will tailor toward your needs to offer you assistance and/or
guidance in the optimization of your health.
Please remember that we are here throughout the year.
The following chart summarizes your key health statistics
from your exam and will serve as a baseline for future exams:");