Accusoft.PdfXpressSdk Namespace > Document Class : AddText Method |
'Declaration Public Sub AddText( _ ByVal addTextOptions As AddTextOptions, _ ByVal pageNumber As Integer, _ ByVal text As String _ )
'Usage Dim instance As Document Dim addTextOptions As AddTextOptions Dim pageNumber As Integer Dim text As String instance.AddText(addTextOptions, pageNumber, text)
public void AddText( AddTextOptions addTextOptions, int pageNumber, string text )
public: void AddText( AddTextOptions* addTextOptions, int pageNumber, string* text )
public: void AddText( AddTextOptions^ addTextOptions, int pageNumber, String^ text )
This feature is only available in the Professional edition.
A font is chosen automatically from the parameters in the AddTextOptions structure when this is called. Currently, only Type 1 fonts are chosen, and the only guarantees of the font chosen are that it will be the correct size and that all glyphs in the text will be supported by the font. If FontFamily.Serif or FontFamily.SansSerif is chosen, a proportional width font will be preferred. Font style is given precedence over weight or decoration. Only Roman characters are currently supported.
If no valid font is found, a NoValidFontFoundException will be raised. If the text would exceed page bounds, a TextOutOfBoundsException will be raised and no text will be added.