PdfSharp - Wrong PDF page settings when document is opened in Acrobat
问题 I have written a piece of code which uses the PdfSharp library. The instance of PdfSharp.Pdf.PdfDocument created saves to disk as expected. The right content is displayed, but onto the wrong page settings. The default page settings for PdfSharp are: PdfSharp.PageSizes.A4 PdfSharp.PageOrientation.Portrait My problem is that these settings seem to override the required settings. I create the instance of PdfDocument class and adds a new instance of PdfPage class to its Pages collection property.