$ 0 0 Only reading XPS is supported. You cannot write a xps file. You probably want to use another library for this.