I’m trying to convert a pdf we generate, into a PPTx using aspose pdf in .net. The pdf has several fonts embedded into it, and those fonts show up in the pptx. The converted pptx looks fine, but when someone goes to edit it, occasionally characters will show up incorrectly.
In this example the pptx has “hello world”. If any character other than what’s in hello world is added, it won’t display correctly.
image.png (1.0 KB)
I believe this is because when the ppt gets created, a subset of the font is used, so any other character is inserted into the pptx, that isn’t already in the pptx, won’t display correctly. Is there any way to ensure that the entire font gets embedded into the pptx when converting?
The code I’m using is pretty simple
var pdf = new Document(pdfStream.Stream);
var pptxStream = new MemoryStream();
var options = new PptxSaveOptions {
SlidesAsImages = false,
TryMergeAdjacentSameBackgroundImages = false,
};
pdf.Save(pptxStream, options);