I am trying to use Spire.Presentation on my new Mac and I get exception "Cannot found font installed on the system" error every time I close pptx fixe after opening, even if I don't do any modifications of the file.
That happens with any pptx file.
Everything works fine when I use my old laptop with Windows.
I tried to install all fonts provided by MS Word on my Mac but it did not help.
- Code: Select all
var pre = new Spire.Presentation(stream, FileFormat.Pptx2013);
pre.SaveToFile(currentStream, FileFormat.Pptx2013); // Exception happens here
pre.Dispose();
StackTrace:
" at spr⼀.ᜀ(String A_0, FontStyle A_1, String A_2)\\n at spr⼆.ᜀ(String A_0, Single A_1, FontStyle A_2, String A_3, FontStyle A_4)\\n at spr⼆.ᜀ(String A_0, Single A_1, FontStyle A_2, String A_3)\\n at spr⼆.ᜀ(String A_0, Single A_1, FontStyle A_2)\\n at spr⁗..ctor(String A_0, Single A_1, FontStyle A_2)\\n at spr .ᜃ(Single A_0)\\n at spr .\\u1716()\\n at sprᝆ.ᜁ(String A_0, spr A_1)\\n at sprᝆ.ᜀ(ᜄ A_0, ᜄ A_1, TextRange A_2, spr [] A_3)\\n at sprᝆ.ᜀ(ᜄ A_0, ᜄ A_1, TextRange A_2, Single& A_3, Single& A_4)\\n at sprᝆ.ᜀ()\\n at sprᝆ..ctor(TextParagraphProperties[] A_0, ParagraphCollection A_1, Single A_2, Single A_3, Int32 A_4, Single A_5, Boolean A_6, TextAnchorType A_7, Boolean A_8, ActiveSlide A_9, ᜀ A_10, LocaleFonts A_11, FontCollectionIndex A_12, Single A_13, Single A_14, Int32 A_15, Object A_16)\\n at sprᝥ.ᜀ(Single A_0, Single A_1, ShapeStyle A_2, sprᝥ[] A_3, spr\\u175c A_4)\\n at sprᝍ.ᜀ(GraphicFrame& A_0, RectangleF& A_1, Single& A_2, Single& A_3, Single& A_4, Single& A_5, spr\\u175c A_6)\\n at sprᝍ.ᜎ()\\n at sprᝍ.ᜀ(sprᢛ A_0)\\n at Spire.Presentation.Collections.ShapeList.ᜀ(sprᢛ A_0)\\n at Spire.Presentation.GroupShape.PptxPrepareForSaving(sprᢛ saveContext)\\n at Spire.Presentation.ActiveSlide.PresentationBeforeSave(sprᢛ saveContext)\\n at spr\\u1754.ᜀ(sprᢛ A_0)\\n at spr\\u1759.ᜀ(sprᢛ A_0, sprᜪ A_1)\\n at spr\\u1759.ᜀ(Stream A_0, sprᜪ A_1, spr\\u1f46 A_2)\\n at spr\\u1759.ᜀ(Stream A_0, sprὁ A_1, sprὂ A_2)\\n at spr\\u1759.ᜀ(Stream A_0, sprὁ A_1)\\n at Spire.Presentation.Presentation.SaveToFile(Stream stream, FileFormat fileFormat)\\n at DeckRobot.API.Services.Preprocessing.TextPreprocessor.Execute(Stream currentStream) in /Users/aliakseipatapau/Documents/workspace/deckrobot/ai-api/DeckRobot.API/Services/Preprocessing/TextPreprocessor.cs:line 63\\n at DeckRobot.API.Services.PresentationService.TrainPresentationProcessor.Execute(Stream prePptxStream, Stream defImgStream) in /Users/aliakseipatapau/Documents/workspace/deckrobot/ai-api/DeckRobot.API/Services/PresentationService/TrainPresentationProcessor.cs:line 57\\n at DeckRobot.API.Services.PresentationService.SpirePreProcessor.ProcPreAsync(Stream prePptxStream, Int32 preDbEntityId, String preType, CancellationToken token) in /Users/aliakseipatapau/Documents/workspace/deckrobot/ai-api/DeckRobot.API/Services/PresentationService/SpirePreProcessor.cs:line 152\\n at DeckRobot.API.Services.PresentationService.SpirePreProcessor.ProcPreAsync(Presentation waitPreDbEntity, CancellationToken token) in /Users/aliakseipatapau/Documents/workspace/deckrobot/ai-api/DeckRobot.API/Services/PresentationService/SpirePreProcessor.cs:line 114\\n at DeckRobot.API.BackgroundHosts.TasksManager.<>c__DisplayClass9_2.<<ExecuteAsync>b__7>d.MoveNext() in /Users/aliakseipatapau/Documents/workspace/deckrobot/ai-api/DeckRobot.API/BackgroundHosts/TasksManager.cs:line 188\\n--- End of stack trace from previous location where exception was thrown ---\\n at DeckRobot.API.BackgroundHosts.TasksManager.<>c__DisplayClass9_0.<<ExecuteAsync>b__1>d.MoveNext() in /Users/aliakseipatapau/Documents/workspace/deckrobot/ai-api/DeckRobot.API/BackgroundHosts/TasksManager.cs:line 188"