Presentation Custom Document Properties?

How can I read and write custom document properties on PPT and PPTX files? I cant see this object as being exposed in the current Slides API. This is possilbe via VBA using ActivePresentation.CustomDocumentProperties.

Dear Richard,

You can set the document properties both in PPT and PPTX using Aspose.Slides for Java. I have shared the sample code snippet for setting and accessing different document properties for both PPT and PPTX. Please follow the documentation link 1 and link 2 for DocumentProperties classes details.

For PPT presentations:

Presentation Pres=new Pres("D:\\ppt\\temp.ppt");

Presentation.getDocumentProperties().set("Mudassir",1);
Presentation.getDocumentProperties().setAuthor("Mudssir");
Presentation.getDocumentProperties().setCategory("General");
Presentation.getDocumentProperties().setComments("Hello world");
Presentation.getDocumentProperties().setCompany("Aspose");
Presentation.getDocumentProperties().setLastSavedBy("Alpha");

String sGen,sAutor,sCategory,sComments,sCompany,sLastSave;

Presentation.getDocumentProperties().get(sGen);
Presentation.getDocumentProperties().getAuthor(sAutor);
Presentation.getDocumentProperties().getCategory(sCategory);
Presentation.getDocumentProperties().getComments(sComments);
Presentation.getDocumentProperties().getCompany(sCompany);
Presentation.getDocumentProperties().getLastSavedBy(sLastSave);

For PPTX presentations:

PresentationEx Presentation=new PresentationEx("D:\\ppt\\temp.pptx");
Presentation.getDocumentProperties().set("Mudassir",1);
Presentation.getDocumentProperties().setAuthor("Mudssir");
Presentation.getDocumentProperties().setCategory("General");
Presentation.getDocumentProperties().setComments("Hello world");
Presentation.getDocumentProperties().setCompany("Aspose");
Presentation.getDocumentProperties().setContentStatus("Complete");

String sGen,sAutor,sCategory,sComments,sCompany,sStatus;

Presentation.getDocumentProperties().get(sGen);
Presentation.getDocumentProperties().getAuthor(sAutor);
Presentation.getDocumentProperties().getCategory(sCategory);
Presentation.getDocumentProperties().getComments(sComments);
Presentation.getDocumentProperties().getCompany(sCompany);
Presentation.getDocumentProperties().getContentStatus(sStatus);

Thanks and Regards,