Value of “Last Modified” property is changed to TODAY when OOXML file is converted to legacy format

Scenario : Open existing or create new PPTM file using MS PowerPoint. Use PowerPoint to get “Last Modified” built-in property (File > Info). Then use Aspose.Slides to convert file to PPT format.

Issue : Value of “Last Modified” property is different. New value is changed to TODAY.

@licenses,

I have observed the issue shared by you and request you to please share the source presentation, generated presentation and used sample code reproducing the issue along with snapshot. I also suggest you to please first try using latest Aspose.Slides for .NET 18.8 on your end.

Hi

sample-presentations.zip (70.3 KB)

var p = new Presentation("pptm.pptm");
p.Save("pptm.pptm,ppt", SaveFormat.Ppt);

Alex

@licenses,

When you load and save the presentation the Last Saved Time automatically gets updated in saved presentation. So, you can use the following alternate code to retain the old documentation properties in presentation.

    public static void UpdateDocProperties()
    {
        String path = @"F:\Aspose Data\sample-presentations\";

        var props = PresentationFactory.Instance.GetPresentationInfo(path + "pptm.pptm").ReadDocumentProperties();
        Presentation pres = new Presentation(path + "pptm.pptm");
        pres.Save(path+"Pptm_Saved.ppt", Aspose.Slides.Export.SaveFormat.Ppt);

        // Read and correct saved presentation properties
        IPresentationInfo pInfo = PresentationFactory.Instance.GetPresentationInfo(path + "Pptm_Saved.ppt");

        pInfo.UpdateDocumentProperties(props);
        pInfo.WriteBindedPresentation(path + "Pptm_Saved.ppt");

    }