We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Export to PPT - Font & Family Mismatch

Trying to export a HTML to Power point. Using the below code:

private static void GeneratePPt(string inputFile, string outputFile)
{
HtmlLoadOptions htmloptions = new HtmlLoadOptions();
Document doc = new Document(new MemoryStream(File.ReadAllBytes(inputFile)), htmloptions);
doc.Save(outputFile);
Aspose.Pdf.PptxSaveOptions pptx_save = new Aspose.Pdf.PptxSaveOptions();
        // Save the <span class="Apple-tab-span" style="white-space:pre">	</span>output in PPTX format


doc.Save(outputFile.Replace(".pdf", “.pptx”), pptx_save);
}

The Power point file exports the html to power point but changes font family to
BLGPWL + Arial
Font size =6px (it should be 13px).

Hi Arunabh,


Thanks for your inquiry. I have noticed that Font size is decreased in HTML to PDF conversion. Font size in your source HTML is 13 and it reduced to 9.75 in PDF document and rounded to 9.5 in PPTX. I have logged a ticket PDFNEWNET-39673 in our issue tracking system to investigate and resolve HTML to PDF conversion issue. We will keep you updated about the issue resolution.

We are sorry for the inconvenience caused.

Best Regards,