InvalidOperationException is thrown when exporting a PDF document with a set compliance that processes Type3 font glyphs.
Workaround: Before export, set compliance to None.
var provider = new PdfFormatProvider();
provider.ExportSettings.ComplianceLevel = PdfComplianceLevel.None;