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(); // Add Text System::SharedPtr textFill = doc->CreateSolidColorBrush(System::Drawing::Color::get_Black()); System::SharedPtr glyphs = doc->AddGlyphs(u"Arial", 20.0f, System::Drawing::FontStyle::Regular, 400.f, 200.f, u"++C. rof SPX.esopsA"); glyphs->set_BidiLevel(1); glyphs->set_Fill(textFill); // Save resultant XPS document doc->Save(outDir() + u"AddText_out.xps");