pdfSharp document orientation
<p>I want to change the orientation of a document created in c# wpf with pdfSharp, What should I do if I want to have a landscape document </p>

<p>here is my code </p>

<pre><code>        private void savePDF()
    {

        string date = DateTime.Now.ToString().Replace('/', '-').Replace(':', '-');

        MemoryStream lMemoryStream = new MemoryStream();
        Package package = Package.Open(lMemoryStream, FileMode.Create);
        XpsDocument doc = new XpsDocument(package);
        XpsDocumentWriter writer = XpsDocument.CreateXpsDocumentWriter(doc);
        writer.Write(rapport);
        doc.Close();
        package.Close();
        var pdfXpsDoc = PdfSharp.Xps.XpsModel.XpsDocument.Open(lMemoryStream);
        PdfSharp.Xps.XpsConverter.Convert(pdfXpsDoc, "E:\\"+ date +".pdf", 0);



    }
</code></pre>