Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
147344 | Sep 6,2019 12:06 PM UTC | Sep 13,2019 06:28 AM UTC | WPF | 5 |
![]() |
Tags: Presentation |
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(); |
This post will be permanently deleted. Are you sure you want to continue?
Sorry, An error occured while processing your request. Please try again later.
This page will automatically be redirected to the sign-in page in 10 seconds.