简体   繁体   中英

Cannot use XFont using PDFsharp in Azure WebSite

I deploy an application that uses PDFsharp to create a few PDF files on the fly to an azure website.
It is working well in development, but when I move to azure and run the application, when the program tries to create the new XFont object to format the output I receive the error message

Font data could not retrieved

How can I solve this?
Thanks,
luca

Give your application more rights (full trust) or use Private Fonts.

http://pdfsharp.net/wiki/PrivateFonts-sample.ashx IIRC with PDFsharp 1.32 private fonts only work with the WPF build of PDFsharp.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM