生成的 PDF 中的 Syncfusion Xamarin.Forms 格式化文本
Syncfusion Xamarin.Forms formatted text in generated PDF
我想问你是否可以创建像
这样的格式化文本
This text is normal and this one is bold. We also have an italic font slope.
这样:
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) 但 PdfHTMLTextElement Class 在 Xamarin 中不受支持。
下一个选择是插入 RTF 文本 (https://help.syncfusion.com/file-formats/pdf/working-with-text#inserting-rich-text-format-contents) 在 Xamarin 中也不可能使用它。
我还希望在 PdfLightTable 的单元格中有一个格式化的字符串。您有实现此目标的任何提示吗?
非常感谢你的帮助。
目前 Xamarin 平台不支持 PdfHTMLTextElement。为了满足您的要求,我们创建了将样式应用于基于 HTML 标签的文本的解决方法示例。
请找出
Sample
谢谢。
我想问你是否可以创建像
这样的格式化文本This text is normal and this one is bold. We also have an italic font slope.
这样:
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) 但 PdfHTMLTextElement Class 在 Xamarin 中不受支持。 下一个选择是插入 RTF 文本 (https://help.syncfusion.com/file-formats/pdf/working-with-text#inserting-rich-text-format-contents) 在 Xamarin 中也不可能使用它。
我还希望在 PdfLightTable 的单元格中有一个格式化的字符串。您有实现此目标的任何提示吗?
非常感谢你的帮助。
目前 Xamarin 平台不支持 PdfHTMLTextElement。为了满足您的要求,我们创建了将样式应用于基于 HTML 标签的文本的解决方法示例。
请找出 Sample
谢谢。