我想问你是否可以创建格式化文本
这个文字是正常的,这个是粗体。我们也有一个斜体字体斜率。
通过这种方式:
graphics.DrawString("This text is normal and this one is bold. We also have an italic font slope.", font, PdfBrushes.Black, new PointF(0, 0));
我试图使用HTML样式文本(https://help.syncfusion.com/file-formats/pdf/working-with-text#adding-a-html-styled-text)来编写文档,但Xamarin不支持PdfHTMLTextElement类。下一个选择是插入RTF文本(https://help.syncfusion.com/file-formats/pdf/working-with-text#inserting-rich-text-format-contents),也不可能在Xamarin中使用它。
我还要在PdfLightTable的单元格中有一个格式化的字符串。你有任何提示如何实现这一目标吗?
我非常感谢你的帮助。