For complete examples and data files, please go to https://github.com/aspose-page/Aspose.Page-for-C // Create new XPS Document auto doc = System::MakeObject(); //Create a brush System::SharedPtr textFill = doc->CreateSolidColorBrush(System::Drawing::Color::get_Black()); //Add glyph to the document System::SharedPtr glyphs = doc->AddGlyphs(u"Arial", 12.0f, System::Drawing::FontStyle::Regular, 300.f, 450.f, u"Hello World!"); glyphs->set_Fill(textFill); // Save resultant XPS document doc->Save(outDir() + u"AddText_out.xps");