How to work witH transparency of an XPS file is a question answered by Aspose.Page API solution. See How to use tHe functionality in Java...createPathGeometry ( "M300,120 h600 V420 h-600" )). setFill (doc. createSolidColorBrus...createPathGeometry ( "M20,20 h200 v200 h-200 z" )); 12 // Set blue solid...