I need this solution as we are archiving files and then restoring back when a user wants to restore.but during restore we want to generate renditions again as if file was never archived.
DFC :
Interface IDfSysObject
void addRendition(String fileName, String formatName) throws DfException
save
checkin
The following code example demonstrates how to add a Word Perfect rendition to the sysobject:
IDfSysObject sysObj = (IDfSysObject)session.getObjectByQualification("dm_document where r_object_id='0900d5bb8001f900'"); sysObj.addRendition("chap_1.wp7", "wp7"); sysObj.save();
IDfSysObject sysObj = (IDfSysObject)session.getObjectByQualification("dm_document where r_object_id='0900d5bb8001f900'");
sysObj.addRendition("chap_1.wp7", "wp7");
sysObj.save();
fileName
formatName
DfException
Refer : DFC API for more information.
- Prabhu