{"id":80,"date":"2013-08-25T19:24:01","date_gmt":"2013-08-25T18:24:01","guid":{"rendered":"http:\/\/thedifficultbit.com\/?p=80"},"modified":"2013-08-25T19:33:43","modified_gmt":"2013-08-25T18:33:43","slug":"dev-express-rich-edit-document-server-fonts-in-pdf","status":"publish","type":"post","link":"https:\/\/thedifficultbit.com\/?p=80","title":{"rendered":"Dev Express Rich Edit Document Server: Fonts in PDF"},"content":{"rendered":"<p>DevExpress has a\u00a0<a href=\"http:\/\/documentation.devexpress.com\/#DocumentServer\/clsDevExpressXtraRichEditRichEditDocumentServertopic\">Rich Edit Document Server<\/a>\u00a0class that can be used, among other things, to convert HTML documents to PDF using the <a href=\"http:\/\/documentation.devexpress.com\/#DocumentServer\/DevExpressXtraRichEditRichEditDocumentServer_ExportToPdftopic65\">ExportToPdf<\/a> function. This can be used in an ASP.Net web site and will work under normal Medium Trust.<\/p>\n<p>However under Medium Trust some fonts do not display well, either not being spaced correctly or showing boxes instead of characters:<\/p>\n<p><a href=\"http:\/\/thedifficultbit.com\/wp-content\/uploads\/2013\/08\/DevExpressFonts_Incorrect.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-83\" alt=\"DevExpressFonts_Incorrect\" src=\"http:\/\/thedifficultbit.com\/wp-content\/uploads\/2013\/08\/DevExpressFonts_Incorrect-300x167.png\" width=\"300\" height=\"167\" srcset=\"https:\/\/thedifficultbit.com\/wp-content\/uploads\/2013\/08\/DevExpressFonts_Incorrect-300x167.png 300w, https:\/\/thedifficultbit.com\/wp-content\/uploads\/2013\/08\/DevExpressFonts_Incorrect-1024x572.png 1024w, https:\/\/thedifficultbit.com\/wp-content\/uploads\/2013\/08\/DevExpressFonts_Incorrect-624x348.png 624w, https:\/\/thedifficultbit.com\/wp-content\/uploads\/2013\/08\/DevExpressFonts_Incorrect.png 1235w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>Under Full Trust they do display OK:<\/p>\n<p><a href=\"http:\/\/thedifficultbit.com\/wp-content\/uploads\/2013\/08\/DevExpressFonts_Correct.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-82\" alt=\"DevExpressFonts_Correct\" src=\"http:\/\/thedifficultbit.com\/wp-content\/uploads\/2013\/08\/DevExpressFonts_Correct-300x174.png\" width=\"300\" height=\"174\" srcset=\"https:\/\/thedifficultbit.com\/wp-content\/uploads\/2013\/08\/DevExpressFonts_Correct-300x174.png 300w, https:\/\/thedifficultbit.com\/wp-content\/uploads\/2013\/08\/DevExpressFonts_Correct-1024x597.png 1024w, https:\/\/thedifficultbit.com\/wp-content\/uploads\/2013\/08\/DevExpressFonts_Correct-624x363.png 624w, https:\/\/thedifficultbit.com\/wp-content\/uploads\/2013\/08\/DevExpressFonts_Correct.png 1243w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>Presumably there is a particular permission required&#8230;<\/p>\n<p>Using: ASP.Net 4.0; DevExpress 13.1;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>DevExpress has a\u00a0Rich Edit Document Server\u00a0class 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 under Medium Trust some fonts do not display well, either not being spaced correctly or [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[7,8,9],"class_list":["post-80","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-devexpress","tag-pdf","tag-trust"],"_links":{"self":[{"href":"https:\/\/thedifficultbit.com\/index.php?rest_route=\/wp\/v2\/posts\/80","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/thedifficultbit.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/thedifficultbit.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/thedifficultbit.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/thedifficultbit.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=80"}],"version-history":[{"count":5,"href":"https:\/\/thedifficultbit.com\/index.php?rest_route=\/wp\/v2\/posts\/80\/revisions"}],"predecessor-version":[{"id":89,"href":"https:\/\/thedifficultbit.com\/index.php?rest_route=\/wp\/v2\/posts\/80\/revisions\/89"}],"wp:attachment":[{"href":"https:\/\/thedifficultbit.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=80"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/thedifficultbit.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=80"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/thedifficultbit.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=80"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}