HiraokaHyperTools / PDFsharp

Just xps2pdf
MIT License
18 stars 5 forks source link

XPS to PDF conversion not working in NET6 #22

Closed HelmuthWcs closed 2 years ago

HelmuthWcs commented 2 years ago

I'm running the same code for NET5 and NET6, and I have confirmed that this code is working in NET5 but not in NET6:

using (XpsDocument xpsDoc = new XpsDocument(path, FileAccess.Write)) { XpsDocumentWriter xWriter = XpsDocument.CreateXpsDocumentWriter(xpsDoc); xWriter.Write(page); } PdfSharp.Xps.XpsConverter.Convert(path, fileName, 0);

The XPS file seems fine, but the conversion results in blank space where the text should be. Images render without issue.

I am running kenjiuno.PdfSharp.Xps version 1.1.9 and kenjiuno.PdfSharp-WPF version 1.31.6034

kenjiuno commented 2 years ago

Thanks for reporting, I'll check this later

kenjiuno commented 2 years ago

Ok 1.1.10 will resolve this. https://www.nuget.org/packages/kenjiuno.PdfSharp.Xps

HelmuthWcs commented 2 years ago

It works. Thanks!

kenjiuno commented 2 years ago

Thx for checking, now closing