I’m trying to add a custom property in ppt file using Aspose.Slides.dll (.NET).
Following is the code snippet for the same.
Aspose.Slides.LoadFormat lLoadFormat = Aspose.Slides.LoadFormat.Ppt;
Aspose.Slides.Export.SaveFormat lSaveFormat = Aspose.Slides.Export.SaveFormat.Pptx;
Aspose.Slides.LoadOptions lLoadOptions = new Aspose.Slides.LoadOptions(lLoadFormat);
lLoadOptions.OnlyLoadDocumentProperties = false;
Aspose.Slides.Presentation lSlidesDoc = new Aspose.Slides.Presentation(pstrFilePath, lLoadOptions);
lSlidesDoc.DocumentProperties[“SampleProperty1”] = “Value1”;
lSlidesDoc.DocumentProperties[“SampleProperty2”] = “Value2”;
lSlidesDoc.Save(pstrFilePath + “OUT.ppt”, lSaveFormat);
The issue is that the file size decreases after the process completes.
For the attached sample files:
The input file is - Original sample file.ppt Size is 43KB
The output file is - Original sample file.pptOUT.ppt Size is 10KB
Can someone please explain why there is decrease in the file size after processing.
Sample Files.zip (26.4 KB)