Hi Support,
I am trying to upgrade to the latest version of Aspose (14.3.0). I found some differences between Version 8.4.0 and 14.3.0, and I have some questions about what is supported as well.
PPT files :
1- I can not access document properties. :
- presentation.DocumentProperties.Count is 0
- presentation.DocumentProperties[name] returns null
- presentation.DocumentProperties[index] returns throws System.ArgumentOutOfRangeException
2 - Is presentation.DocumentProperties.PresentationFormat supported for ppt files?
3 - Is presentation.DocumentProperties.ContentType supported for ppt files?
4 - Is presentation.DocumentProperties.ContentStatus supported for ppt files?
PPTX files :
1- Presentation.DocumentProperties.Comments contains : x000d
Sample code
var ppt = new Aspose.Slides.Presentation(“Slides.ppt”);
DocumentProperties documentProperties = ppt.DocumentProperties;
Trace.WriteLine(“documentProperties.Count: " + documentProperties.Count);
Trace.WriteLine(“documentProperties[“Checked by”]: " + documentProperties[“Checked by”]);
Trace.WriteLine(” Ppt Comments\n” + ppt.DocumentProperties.Comments);
var pptx = new Presentation(“Slides.pptx”);
var dPx = pptx.DocumentProperties;
Trace.WriteLine("documentProperties.Count: " + dPx.Count);
Trace.WriteLine(“documentProperties.PresentationFormat: " + dPx.PresentationFormat);
Trace.WriteLine(“documentProperties[“Checked by”] ==> " + dPx[“Checked by”]);
Trace.WriteLine(” Pptx Comments\n”+pptx.DocumentProperties.Comments);
Output
Aspose.Slides 8.4.0
-------------------------------------------------------
PPT
-------------------------------------------------------
documentProperties.Count: 5
documentProperties[“Checked by”]: Lea
Ppt Comments:
Comment#1
Comment#2
-------------------------------------------------------
PPTX
-------------------------------------------------------
Slidex0 Name :
documentProperties.Count: 5
documentProperties[“Checked by”] : Lea
Pptx Comments:
Comment#1_x000d_
Comment#2
Aspose.Slides 14.3.0
-------------------------------------------------------
PPT
-------------------------------------------------------
documentProperties.Count: 0
documentProperties[“Checked by”]:
Ppt Comments:
Comment#1
Comment#2
-------------------------------------------------------
PPTX
-------------------------------------------------------
documentProperties.Count: 5
documentProperties[“Checked by”]: Lea
Pptx Comments:
Comment#1_x000d_
Comment#2
Please find attached Slides.ppt and Slides.pptx , the files used for my tests.
Thank you,
Lea.