C# – saving a FlowDocument to disk as an XPS document

cflowdocumentnetwpfxpsdocument

now the Window containing the FlowDocumentReader which contains my FlowDocument that I want to convert is loaded on the screen , it has a button there , I want when clicking on this button , to save my FLowDocument to disk as an XPS , using Package and Stream .NET classes and not using a printer.

Thanks in advance