The response to the Get Page request of the REST Service in .NET Core/5/6 doesn't include page size when the paper kind is Custom. This may be the reason why the printing from the WPF Viewer results in blank pages.
When the service is in .NET Framework, the paper size is in the response, and the document is printed correctly.