Quantcast
Channel: Active questions tagged blazor - Stack Overflow
Viewing all articles
Browse latest Browse all 4839

Creating a downloadable PDF file using Blazor C#

$
0
0

I'm developing in Blazor C# on .NET 6.0 in Visual Studio, and I need to create a PDF file that the user would be able to download.The file needs to contain images and Hebrew characters and punctuation from a .tff file, from the link here.

I tried to create a file via the iTextSharp library on the Server, but the server cannot encode the new font for use, and the default fonts cannot display text in Hebrew.

I then tried to create the file the same way on client-side, since it could have the font embedded, but of course the iTextSharp library can only be used on server-side, as do similar .NET libraries.

My next method was to create a Blazor component that would contain the images and Hebrew text, and use some sort of HTML to PDF conversion, but I can't find a library that performs this conversion, and I also can't pay for external APIs.


Viewing all articles
Browse latest Browse all 4839

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>