After Windows Update WPF XPS Viewer don´t show images after pdf conversion to xps

Hi, a happy new year to all.
After the Windows update KB5020872 from 13.12.2022 (regarding XPS rendering) and the installation of the correction script from KB5022083, XPS files converted with GemBox PDF are not rendered correctly with the WPF DocumentViewer control. Images are generally not displayed. I used the latest gemBox.PDF DLL version 17.0.0.1244.
Documents saved directly as XPS files (from Microsoft Office) are displayed correctly. So it looks like this behaviour is due to the changed rendering (Win Update) and the obviously not adapted GemBox PDF DLL.
Will there be an update from GemBox in the foreseeable future or is there a temporary workaround?
Greetings, Frank.

Hi Teddy and happy new year to you too!

This seems to be the breaking change that is causing your issue:

https://support.microsoft.com/en-us/topic/december-13-2022-kb5021086-cumulative-update-for-net-framework-3-5-4-8-and-4-8-1-for-windows-10-version-20h2-7943ef34-d9ae-4e96-9518-f9f45f7f5f23

In that article, you can find a link to a workaround, please try it out:

https://support.microsoft.com/en-us/topic/kb5022083-change-in-how-wpf-based-applications-render-xps-documents-a4ae4fa4-bc58-4c37-acdd-5eebc4e34556

Does this solve your issue?

Regards,
Stipo

Hello Stipo,

I have to check with my customer if the NET.Framework Updates are done.

But the behaviour on my PC with WIN 10 Version 22H2 is currenly the same as in the 20H2 Version of my customer. And its caused in the converting process of GemBox PDF to xps File.
The workaround mentioned in your second link has been done on both sides. But nevertheless Images will not be rendered in the WPF Document Viewer if the xps file is created from GemBox.Pdf. (As descriped in my first message.)

Kind regards,
Frank

Hi Teddy,

Please try again with this bugfix:

https://www.gemboxsoftware.com/pdf/nightlybuilds/GBA17v1260.zip

Or this NuGet package:

Install-Package GemBox.Pdf -Version 17.0.1260-hotfix

Does this solve your issue?

Regards,
Stipo

Hi Stipo,

Sorry for late response. But Yes. The Problem is solved. Thank you very much!