Is the resulting image in grayscale or completely black (empty)?
I’m familiar with the issue of getting a black (or empty) image, this can occur in the ASP.NET Core 3.1 (or above) that is hosted on IIS. To resolve this issue, you’ll need to set Switch.System.Windows.Media.ShouldRenderEvenWhenNoDisplayDevicesAreAvailable to true with either a “runtimeconfig.template.json” file or AppContext class.
If the result is indeed black and white, then I believe this issue is probably specific to your input PDF. Can you send it to us so that we can try reproducing the same?
Regarding your additional questions.
Yes, GemBox.Pdf does support UWP.
I’m not sure what you mean by this, what PDF Viewer are you referring to?
Note, GemBox.Pdf enables you to convert PDF to an image or XPS. You can combine this together with some existing control that supports rendering an image or XPS in order to create your PDF Viewer.
Again, I’m afraid that GemBox.Pdf doesn’t provide PDF Viewer control. We have examples that demonstrate how you can create one in the WPF application using DocumentViewer control and Image control.
Again, I’m afraid I was unable to reproduce this issue.
Please send us your PDF file so that we can try reproducing this issue and resolving it for you.