I have a single slide PPTX, when I save as PDF, I get a different Font used vs when I save as PPTX.
I have specified the default Font in the load options to be the font used in the PPTX. I have tried changing the default font to other completely different font families and none of them get picked up, regardless of what I set the default font to, the PDF always saves the same way.
The text in the PPTX is in Metropolis and in the PDF it is Metropolis Semi Bold
Sample PPTX and PDF produced are here : ILT-Slides.zip (87.5 KB)
This code demonstrates the example
string WorkFolder = TestRootFolder + "\\ILT-Slides";
string input = Path.Combine(WorkFolder, "preview.pptx");
string output = Path.Combine(WorkFolder, "preview.pdf");
string lic = Path.Combine(WorkFolder, "aspose.lic");
License license = new License();
license.SetLicense(lic);
Aspose.Slides.LoadOptions loadOptions = new Aspose.Slides.LoadOptions(LoadFormat.Auto)
{
DefaultRegularFont = "Metropolis-Regular"
};
Presentation thePres = new Presentation(input, loadOptions);
thePres.Save(output, SaveFormat.Pdf);