Add footer to PPT file document object using java action

Hello  ,  I have one PPT filedocument object in mendix, I'm creating java action to add footer to that PPT file and commit back to db. But I'm not getting how to read that PPT filedocument as file in javaaction. I have one method in java LoadFromFile("filepathFromLocalRepository") which will load ppt file and add footer to that file. But in my case I have PPT fileDocument mendix object(parameter to java action), so can anyone suggest me how I can use mendix PPT fileDocument object to LoadFromFile method or any other way to achieve my functionality to add footer to PPT File in mendix?
2 answers

You would normally use getFileDocumentContent to access the contents of a Mendix FileDocument. This will return an InputStream. Does your Java library accept an InputSteam?

If you need to save back to a FileDocument, have a look at the storeFileDocumentContent method.,com.mendix.systemwideinterfaces.core.IMendixObject),com.mendix.systemwideinterfaces.core.IMendixObject,

Good luck!


Hi Vaishnavi,

Create a java action with your PPT file document type as input parameter. Use same entity type as output value also.
Deploy project for eclipse and add custom java logic to add footer in your PPT file document. Return the changed filedocument object in java action.
Check documentation below,