DevExpress Rich Edit Document Server: Photos not shown in PDFs

DevExpress has a Rich Edit Document Server class that can be used, among other things, to convert HTML documents to PDF using the ExportToPdf function. This can be used in an ASP.Net web site and will work under normal Medium Trust.

However in the modified Medium Trust used by some hosts (for example, Rackspace) the resulting PDFs come out as blank if the input HTML includes any images. After some experimentation with the trust files (see ASP.NET Trust Levels and Policy Files) it turns out the problem is that the ReflectionPermission must be present with Flags="RestrictedMemberAccess". Note that Unrestricted="true" is not sufficient.

Using: ASP.Net 4.0; DevExpress 13.1;