When i am rendition a document using the code.I am able to see the rendition entry in dmr_content. The set_file attribute in dmr_content is LOC-000001-2018-1000-br_3333(object_name of the document).But When i download the pdf document , it is corrupted. Below is the code.
String CONTENT_TYPE = "pdf";
IDfSysObject idfsys = (IDfSysObject) aSession.getObject(new DfId("0912d68780080aab"));
if (idfsys != null) {
idfsys.addRendition(idfsys.getFile(idfsys.getObjectName()),
CONTENT_TYPE);
idfsys.save();
}
When i add rendition using da or dqman(Right Click Object Id->Renditions->Add Renditions),.I am able to see the rendition entry in dmr_content. The set_file attribute in dmr_content is C:\Documentum\CTS\cache\outputfile508405066.pdf. The document can be successfully downloaded.