Add Text in XPS Document

Contents
[ ]

Add Text

Aspose.Page for Java offers XpsGlyphs Class, with which you can add text on XPS document. You need to specify any brush offered by the API, below example uses XpsSolidColorBrush and saves the object of XpsDocument class. Following code snippet shows complete functionality to add text on an XPS document:

Add Text Using Encoding String

Aspose.Page for Java offers XpsGlyphs Class, with which you can add text using Encoding String on an XPS document. You need to specify a brush using setBidiLevel() property of XpsGlyphs class. Following code snippet shows complete functionality to add text using encoding string: