PDFsharp & MigraDoc Foundation https://forum.pdfsharp.net/ |
|
System.InvalidOperationException https://forum.pdfsharp.net/viewtopic.php?f=2&t=2442 |
Page 1 of 1 |
Author: | guyk [ Mon May 13, 2013 3:48 pm ] |
Post subject: | System.InvalidOperationException |
Hey, I am using your great component yo generate pdf file. I have tested it on windows xp, 7, 8 and some web-hosts like winhost. I have now moved my asp.net application to Azure web site. When i runs it locally it works just fine, but after deploying and running it from azure web site i am getting this error: System.InvalidOperationException Internal error. Font data could not retrieved. System.InvalidOperationException: Internal error. Font data could not retrieved. at PdfSharp.Fonts.OpenType.FontData.CreateGdiFontImage(XFont font, XPdfFontOptions options) at PdfSharp.Fonts.OpenType.FontData..ctor(XFont font, XPdfFontOptions options) at PdfSharp.Fonts.OpenType.OpenTypeDescriptor..ctor(XFont font, XPdfFontOptions options) at PdfSharp.Fonts.OpenType.OpenTypeDescriptor..ctor(XFont font) at PdfSharp.Fonts.FontDescriptorStock.CreateDescriptor(XFont font) at PdfSharp.Drawing.XFont.get_Metrics() at PdfSharp.Drawing.XFont.Initialize() at PdfSharp.Drawing.XFont..ctor(String familyName, Double emSize, XFontStyle style, XPdfFontOptions pdfOptions) at MigraDoc.Rendering.FontHandler.FontToXFont(Font font, XPrivateFontCollection pfc, PdfFontEncoding encoding, PdfFontEmbedding fontEmbedding) at MigraDoc.Rendering.ParagraphRenderer.get_CurrentFont() at MigraDoc.Rendering.ParagraphRenderer.CalcCurrentVerticalInfo() at MigraDoc.Rendering.ParagraphRenderer.InitFormat(Area area, FormatInfo previousFormatInfo) at MigraDoc.Rendering.ParagraphRenderer.Format(Area area, FormatInfo previousFormatInfo) at MigraDoc.Rendering.TopDownFormatter.FormatOnAreas(XGraphics gfx, Boolean topLevel) at MigraDoc.Rendering.FormattedHeaderFooter.Format(XGraphics gfx) at MigraDoc.Rendering.FormattedDocument.FormatHeader(HeaderFooterPosition hfp, HeaderFooter header) at MigraDoc.Rendering.FormattedDocument.FormatHeadersFooters() at MigraDoc.Rendering.FormattedDocument.MigraDoc.Rendering.IAreaProvider.GetNextArea() at MigraDoc.Rendering.TopDownFormatter.FormatOnAreas(XGraphics gfx, Boolean topLevel) at MigraDoc.Rendering.FormattedDocument.Format(XGraphics gfx) at MigraDoc.Rendering.DocumentRenderer.PrepareDocument() at MigraDoc.Rendering.PdfDocumentRenderer.PrepareDocumentRenderer(Boolean prepareCompletely) at MigraDoc.Rendering.PdfDocumentRenderer.PrepareRenderPages() at MigraDoc.Rendering.PdfDocumentRenderer.RenderDocument() After searching in Google i replaced the dll's with the wpf ones, so now as i understood it doesn't suppose to use the GDI, but still getting the same error and scenario. Please advise, Thank you very much. Guy Katznelson Software Engineer, Fourtec guyk@fourtec.com |
Author: | Thomas Hoevel [ Mon May 13, 2013 4:40 pm ] |
Post subject: | Re: System.InvalidOperationException |
Hi! Currently PDFsharp requires full trust on web servers to access the font data. |
Page 1 of 1 | All times are UTC |
Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |