Thanks a lot for all your help!
I have a question. Is there a way to insert a blank line prior to 'Page 1 of ...'? Here is my code
Shared Sub AddPageNumber(ByVal doc As Spire.Doc.Document, ByVal sec As Spire.Doc.Section)
''instantiate a character format object and set the font size and family as well as the color
Dim footer As Spire.Doc.HeaderFooter
Dim footerParagraph As Spire.Doc.Documents.Paragraph
Dim text As Spire.Doc.Fields.TextRange
Dim field As Spire.Doc.Fields.Field
Dim cf As New Spire.Doc.Formatting.CharacterFormat(doc)
cf.Font = New Drawing.Font("Arial", 9)
cf.TextColor = Drawing.Color.Black
''build footer page number info
footer = sec.HeadersFooters.Footer
footerParagraph = footer.AddParagraph()
text = footerParagraph.AppendText(" ") <------ trying to insert blank line but it does not work
text.ApplyCharacterFormat(cf)
text = footerParagraph.AppendText(" Page ")
text.ApplyCharacterFormat(cf)
field = footerParagraph.AppendField("page number", Spire.Doc.FieldType.FieldPage)
field.ApplyCharacterFormat(cf)
text = footerParagraph.AppendText(" of ")
text.ApplyCharacterFormat(cf)
field = footerParagraph.AppendField("number of pages", Spire.Doc.FieldType.FieldNumPages)
field.ApplyCharacterFormat(cf)
footerParagraph.Format.HorizontalAlignment = Spire.Doc.Documents.HorizontalAlignment.Center
End Sub