Hi Abhishek,
Thank you for contacting Syncfusion support
We can reproduce the reported issue with “Hindi text preservation issue while converting PPTX document to PDF in Azure environment” in our end, and we suspect it to be a defect. We will validate this issue and update you with more details on 6th July 2020.
Please let us know if you have any other questions.
Regards,
Manikandan Ravichandran
//Load the PowerPoint document IPresentation pptxDoc = Presentation.Open(@"महिला सशक्तिकरण (नारी शक्ति).pptx"); ApplyFont(pptxDoc); //Initialize the conversion settings PresentationToPdfConverterSettings pdfConverterSettings = new PresentationToPdfConverterSettings(); //Enable the portable rendering. pdfConverterSettings.EnablePortableRendering = true; //Convert the PowerPoint document to PDF PdfDocument pdfDoc = PresentationToPdfConverter.Convert(pptxDoc, pdfConverterSettings); //Save the converted PDF file. pdfDoc.Save("Sample.pdf"); //Close the presentation instance pptxDoc.Close(); //Close the PDF instance pdfDoc.Close(); Process.Start("Sample.pdf"); |
private void ApplyFont(IPresentation pptxDoc) { foreach (ISlide slide in pptxDoc.Slides) { foreach (IShape shape in slide.Shapes) { foreach (IParagraph paragraph in shape.TextBody.Paragraphs) { foreach (ITextPart textPart in paragraph.TextParts) { textPart.Font.FontName = "Mangal"; } } } } } |