Hello All,
Can some one provide sample code to provide password protection to PDF files which is part of Documentum repository.
using ITEXT java api, How can i use with documentum TBO code, I plan to provide password through TBO, when documents object gets created in repsitory, but unable to understand to get handle of IDFDocument for following code.
IDfDocument DCTMdocument = (IDfDocument)session.getObject(new DfId("09000006800664b5"));
Document Document_For_Protection = ?? how to provide handle for ITEXT Document class to Documentum Document object reference ????
//Document Document_For_Protection = new Document();
// here want to refer existing repository document
PdfWriter EncryptPDF= PdfWriter.getInstance(Document_For_Protection,new FileOutputStream(DCTMdocument.getObjectName().toString()));
EncryptPDF.setEncryption(UserPassword, OwnerPassword,PdfWriter. ALLOW_PRINTING, PdfWriter.STANDARD_ENCRYPTION_128);
EncryptPDF.createXmpMetadata();
Any pointers on above .....