VS2017 .NET 4.7
I have written a Web App that creates a PDF, the only related nuget package I have installed is:
PDFsharp-MigrDoc-GDI v1.32.4334
It works fine locally on my development machine.
But when I published it to Azure I get the error:
Font data could not be retrieved.
I have found that I need to include the fonts I use as resources in the code, as they may not be present on Azure.
I have also found this:
https://github.com/empira/PDFsharp/blob/master/src/PdfSharp/Fonts/PlatformFontResolver.cs
But I am starting to get confused. Which packages do I need? Do I need PDFsharp, MigraDoc or both?
Any help pointing me in the right direction would help. OR. A simple example "Hello World" PDF (using PDFsharpe/MigraDoc) solution which works on a Azure Web App.
Thanks