Create PDF in Blazor WebAssembly App

Hi,

Please try again with the latest version from our BugFixes page or NuGet.

Also, note that you’ll need to include fonts in your application so that PDF files can be generated.
For instance, you can add them as embedded fonts, see FontsBaseResourceLocation property remarks.
For the example that you provided, you’ll need to include “Calibri” because that is a default font.

Last, GemBox.Document’s PDF writer currently uses System.Drawing for processing images.
But I’m afraid that this doesn’t work on Blazor WASM which is why GemBox.Document cannot create PDF files with images.

Nevertheless, note that we do have plans for investigating the possibility of removing/replacing this dependency in the current road-map.
At the moment, I don’t have any release date to share, but if I had to guess I would say that we’ll probably start working on this before the end of this year.

Regards,
Mario