Please accept my apologies for the delayed response.
I have observed the images shared by you. However, in order to further investigate and resolve the issue on our end, we need the source presentation and sample code that you have used for your investigation. Please also share the generated XPS files as well.
I have worked with the presentation files shared by you and have been able to reproduce the issues specified. An issue with ID SLIDESNET-33670 has been created to resolve the NullReferenceException issue while exporting PPTX.pptx to XPS.
I have also observed the improper rendering issue for bullet character on slide and a separate issue with ID SLIDESNET-33671 has been created as enhancement in our issue tracking system.
This thread has been linked with the issues so that you may be automatically notified once the issues will be resolved.
I have tested the presentation using Aspose.Slides for .NET 6.5.0 as well and there is no issue with that as well. I suggest you to please install the used fonts in your operating system to avoid improper font rendering issue.
Actually, installing the fonts will resolve the issue of block characters rendering. Issue SLIDESNET-33670 deals with NullReferenceException while exporting PPTX.pptx to XPS. Whereas, issue SLIDESNET-33671 deals with black background appearing in bullet characters. These are two different issues and installing fonts will not resolved these issues.
Part of the problem has been solved after my customer installs the fonts. But the problem is there are always some rare fonts in the documents. When converters dont include these rare fonts, can converters use default fonts instead of messy code?
There is another problem
See the code
///
/// Txt To Xps
///
///
///
private void TxtToXps(FileTypeInfo fInfo)
{
SetLicense();
Aspose.Words.Document wordDocument = new Aspose.Words.Document(fInfo.SourcePath);
//Aspose.Words.DocumentBuilder builder = new Aspose.Words.DocumentBuilder(wordDocument);
wordDocument.Save(fInfo.ProxyFileInfo.FilePath, Aspose.Words.SaveFormat.Xps);
}
After text is converted into xps, the content is messy code .see attached.
I like to share that Aspose.Slides use Arial as default font for rendering when the used font is missing. Actually, the Chinese characters are not supported in Arial so the characters are rendered in form of block. The option that remains is to copy the used fonts in your operating system. However, I have added an issue as new feature request in our issue tracking system with ID SLIDESNET-33721to investigate the possibility of setting the user defined font for rendering in case used font missing. This thread has been linked with the presentation so that you may be automatically notified once the feature will be available.
I have verified from our issue tracking system and regret to share that issue has not yet been scheduled for investigation. Actually, the issues are resolved on first come first serve basis and on the basis of the priority of customer based on their subscription. However, I have requested our development team to kindly schedule the issue and will be able to share the further feedback with you as soon as it will be shared by them.
I know there is the so-called first come first serve basis. But this issue has been here for one and a half month. Can you help me solve it as soon as possible?
We are sorry for your inconvenience and like to share that we always try our best to accommodate the issues of our all worthy clients. As I shared earlier that I have requested our development team to provide the schedule for the issue. I am still awaiting response from them and will share that with you for sure as soon as it will be shared by them.
I have received response from our development team and like to share that issue SLIDESNET-33670 has been assigned to concerned developer and he is investigating the issue. I will share the further news related to status of the issue as soon as it will be shared by our development team.
I like to share that issue SLIDESNET-33721 has been resolved in Aspose.Slides for .NET 7.2.0. Now, It is possible to define DefaultRegular font and DefaultAsian font for rendering. Please try using the following sample code to serve the purpose.
LoadOptions lo = new LoadOptions(LoadFormat.Auto);
lo.DefaultRegularFont = “Wingdings”;
lo.DefaultAsianFont = “Wingdings”;
PresentationEx pptx = new PresentationEx(“pptx_location”, lo);