Bold BI®Unlock stunning dashboards with Bold BI®: 35+ widgets, 150+ data sources, AI agent & more. Try it for free!
Hello, we're attempting to convert .pptx files to .pdf format within a Linux environment. We're encountering errors related to the Handouts PublishOptions, particularly when setting SlidesPerPage to Three / Four / Six / Nine. This problem is specific to the Linux environment; however, we tested the conversion on a Windows machine and it worked without issues. In Linux, we're experiencing font-related problems. Below are the exception messages we received:
Unhandled exception: Syncfusion.Pdf.PdfException: Can't read TTF font data\n at Syncfusion.Pdf.Graphics.TtfReader.CheckPreambula()\n at Syncfusion.Pdf.Graphics.TtfReader.ReadFontDirectory()\n at Syncfusion.Pdf.Graphics.TtfReader.Initialize()\n at Syncfusion.Pdf.Graphics.TtfReader..ctor(BinaryReader reader, String name)\n at Syncfusion.Pdf.Graphics.Fonts.UnicodeTrueTypeFont.Initialize(Stream font)\n at Syncfusion.Pdf.Graphics.Fonts.UnicodeTrueTypeFont..ctor(Stream font, Single size, CompositeFontType type, String name)\n at Syncfusion.Pdf.Graphics.PdfTrueTypeFont.CreateFontInternal(Stream fontStream, PdfFontStyle style)\n at Syncfusion.Pdf.Graphics.PdfTrueTypeFont..ctor(Stream fontStream, Single size, Boolean isUnicode, String metricsName, PdfFontStyle fontStyle)\n at Syncfusion.PresentationRenderer.PresentationRendererHepler.MeasureString(Font font, String strValue, FontSettings fontSettings)\n at Syncfusion.Presentation.RichText.Paragraph.MeasureString(String text, Font font, TextCapsType capsType)\n at Syncfusion.Presentation.RichText.Paragraph.LayoutBullet(Single usedHeight, Single& usedWidth, Single bulletIndent, RectangleF shapeBounds, Boolean isLeft, SizeF& size)\n at Syncfusion.Presentation.RichText.Paragraph.CalculateBulletSize(IListFormat ListFormat, Single& usedWidth, Single& usedHeight, RectangleF shapeBounds, SizeF& bulletSize, Single& marginLeft, List`1& textInfoCollection, Single& indentWidth)\n at Syncfusion.Presentation.RichText.Paragraph.Layout(RectangleF shapeBounds, Single& usedHeight, Boolean isWrap, Single& maxWidth)\n at Syncfusion.Presentation.Drawing.Shape.Layout()\n at Syncfusion.Presentation.SlideImplementation.Slide.Layout(Shape shape)\n at Syncfusion.Presentation.SlideImplementation.Slide.Layout()\n at Syncfusion.Presentation.SlideToImageConverter.SlideToImageConverter.ConvertToImage(ISlide slide, ExportImageFormat imageFormat)\n at Syncfusion.PresentationRenderer.PresentationRenderer.ConvertToImage(ISlide slide, ExportImageFormat imageFormat)\n at Syncfusion.Presentation.SlideImplementation.Slide.ConvertToImage(ExportImageFormat imageFormat)\n at Syncfusion.PresentationRenderer.PresentationToPdfConverter.DrawSlide(PdfDocument pdfDocument, ISlide slide, IPresentation presentation)\n at Syncfusion.PresentationRenderer.PresentationToPdfConverter.Convert(IPresentation presentation, PresentationToPdfConverterSettings settings)\n at FreeConvert.Syncfusion.ConversionTool.Extensions.IPresentationExtensions.ConvertToPdf(IPresentation presentation, PresentationToPdfConverterSettings settings) in /src/Extensions/IPresentationExtensions.cs:line 48\n at FreeConvert.Syncfusion.ConversionTool.Mode.Convert.Pdf.Pptx.Handler.HandleAsync(FileInfo sourceFile, FileInfo targetFile, Object options) in /src/Mode/Convert/Pdf/Pptx/Handler.cs:line 27\n at System.Dynamic.UpdateDelegates.UpdateAndExecute4[T0,T1,T2,T3,TRet](CallSite site, T0 arg0, T1 arg1, T2 arg2, T3 arg3)\n at FreeConvert.Syncfusion.ConversionTool.Infastructure.Extensions.ServiceProviderExtensions.<>c__DisplayClass0_0.<<UseCommands>b__1>d.MoveNext() in /src/Infastructure/Extensions/ServiceProviderExtensions.cs:line 33\n--- End of stack trace from previous location ---\n at System.CommandLine.Invocation.AnonymousCommandHandler.InvokeAsync(InvocationContext context)\n at System.CommandLine.Invocation.InvocationPipeline.<>c__DisplayClass4_0.<<BuildInvocationChain>b__0>d.MoveNext()\n--- End of stack trace from previous location ---\n at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c__DisplayClass17_0.<<UseParseErrorReporting>b__0>d.MoveNext()\n--- End of stack trace from previous location ---\n at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c__DisplayClass12_0.<<UseHelp>b__0>d.MoveNext()\n--- End of stack trace from previous location ---\n at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c__DisplayClass22_0.<<UseVersionOption>b__0>d.MoveNext()\n--- End of stack trace from previous location ---\n at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c__DisplayClass19_0.<<UseTypoCorrections>b__0>d.MoveNext()\n--- End of stack trace from previous location ---\n at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c.<<UseSuggestDirective>b__18_0>d.MoveNext()\n--- End of stack trace from previous location ---\n at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c__DisplayClass16_0.<<UseParseDirective>b__0>d.MoveNext()\n--- End of stack trace from previous location ---\n at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c.<<RegisterWithDotnetSuggest>b__5_0>d.MoveNext()\n--- End of stack trace from previous location ---\n at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c__DisplayClass8_0.<<UseExceptionHandler>b__0>d.MoveNext()\n