IPresentation pptxDoc = Presentation.Create();
ISlide firstSlide = pptxDoc.Slides.Add(SlideLayoutType.Blank);
ITable table = firstSlide.Shapes.AddTable(2, 2, 100, 120, 300, 200);
IParagraph paragraph = table.Rows.First().Cells.First().TextBody.AddParagraph($"\u2B9C");
//Set font name of the paragraph text part as "Segoe UI Symbol"
paragraph.TextParts[0].Font.FontName = "Segoe UI Symbol";
paragraph = table.Rows.First().Cells.Last().TextBody.AddParagraph($"\u2B9E");
paragraph.TextParts[0].Font.FontName = "Segoe UI Symbol";
paragraph = table.Rows.Last().Cells.First().TextBody.AddParagraph($"\u2B9C\u2B9C");
paragraph.TextParts[0].Font.FontName = "Segoe UI Symbol";
paragraph = table.Rows.Last().Cells.Last().TextBody.AddParagraph($"\u2328");
paragraph.TextParts[0].Font.FontName = "Segoe UI Symbol";
PdfDocument pdfDocument = PresentationToPdfConverter.Convert(pptxDoc);
pdfDocument.Save("Output.pdf");
pdfDocument.Close(true);
pptxDoc.Close(); |