formattedText.Append() Throwing UnauthorizedAccessException

Hello,

When trying to follow the example using GemBox.Pdf Free version I get an error.

I am using this in Xamarin.Forms Cross Platform application.

The code that errors is:

using (var document = new PdfDocument())
{
    var page = document.Pages.Add();
    using (var formattedText = new PdfFormattedText())
    {
        formattedText.Append("Hello World!"); // error here: "Access to the path "/" is denied."
        page.Content.DrawText(formattedText, new PdfPoint(100, 700));
    }
}

Screenshot:

Any ideas about what might be causing this?

Hi Nathan,

Unfortunately, we were unable to reproduce this issue.
We tried on both the emulator and on a physical device.

Can you please send us your project that reproduces this issue and specify how you’re testing it (simulator, Android, or iPhone)?

Regards,
Mario