06-28-2016 04:44 AM
ContentTransformer transformer = contentService.getTransformer(actualMimetype, MimetypeMap.MIMETYPE_PDF);
if (transformer == null) {
LOG.warn("no transformer found to transform from " + actualMimetype + " to application/pdf");
} else {
render = renditionService.render(destNodeRef, QName.createQName(NamespaceService.CONTENT_MODEL_1_0_URI, "pdf"));
}
06-28-2016 07:22 PM
06-30-2016 01:57 AM
ContentWriter writer = contentService.getWriter(destNodeRef, ContentModel.PROP_CONTENT, true);
writer.setMimetype(mimetype); // mimetype = 'application/vnd.ms-outlook'
writer.setEncoding("UTF-8");
writer.putContent(content);
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.