Empty XPS documents are being created / XPS printing is broken

Symptoms

  • When printing you experience that the output contains only text and images/visuals have been removed.
  • When creating XPS files with a File Printer channel in a Print&Share CQ profile all generated XPS files are empty.
  • WPF applications that print don't print any images.

Cause

An issue after installing the December 13, 2022 or February 14, 2023 security updates or the January 19th, 2023 updates for .NET Framework and .NET may cause issues with the rendering of XPS documents.

Resolution

March 1st, 2023: it is expected that a fix will be provided via Windows Update. At this time of writing you have to try one of the workarounds described below.

Follow the workaround steps described at KB5022083 Change in how WPF-based applications render XPS documents.

The first workaround uses a PowerShell script. The second workaround described changes some registry settings.

Note: many customers reported that only the second workaround did the trick.

See also