谁能告诉如何使用 spire.doc 更改整个 word 应用程序的字体大小?
如何选择整个文本范围并更改字体大小和样式?
谁能帮帮我吗??
谁能告诉如何使用 spire.doc 更改整个 word 应用程序的字体大小?
如何选择整个文本范围并更改字体大小和样式?
谁能帮帮我吗??
在 Vb .net 中:
Dim document As New Document()
document.LoadFromFile("test.html", FileFormat.Html, XHTMLValidationType.None)
For Each section As Section In document.Sections
For Each paragraph As Paragraph In section.Paragraphs
For Each docObject As DocumentObject In paragraph.ChildObjects
If docObject.DocumentObjectType = DocumentObjectType.TextRange Then
Dim text As TextRange = TryCast(docObject, TextRange)
text.CharacterFormat.FontName = "Calibri"
End If
Next docObject
Next paragraph
Next section
document.SaveToFile("HtmlFileToPDF.pdf", FileFormat.PDF)