Brovion wrote:
I threw away all the stuff I'd built for having my own font resolver and just used the suggestion in the manual:
if (Capabilities.Build.IsCoreBuild)
GlobalFontSettings.FontResolver = new FailsafeFontResolver();
Which manual?
Basic rule: Do not use FailsafeFontResolver with production code, write your own FontResolver.
Exception: Segoe WP is the only font you need.
Brovion wrote:
However it still can't find the image despite me trying a number of permutations of paths, however I now get a nice box saying 'image not found' as opposed to a 'not found' exception being thrown.
So what am I missing when it comes to the paths?
Alternative: Load the image into a byte[], convert it to a BASE64 string and pass that in the path parameter.
Details here:
https://www.pdfsharp.net/wiki/MigraDoc_ ... mages.ashx