Hi,
Using the Alfresco OOTB Rendition Service, I'm able to convert a docx file with just the text content into PDF. But when trying to convert a docx (that has screenshot /images) into PDF, it throws the below error:
org.alfresco.service.cmr.rendition.RenditionServiceException: 11040055 Transformer for 'application/vnd.openxmlformats-officedocument.wordprocessingml.document' source mime type and 'application/pdf' target mime type was not found. Operation can't be performed
at org.alfresco.repo.rendition.executer.AbstractTransformationRenderingEngine.render(AbstractTransformationRenderingEngine.java:112)
at org.alfresco.repo.rendition.executer.AbstractRenderingEngine.executeRenditionImpl(AbstractRenderingEngine.java:504)
Also, below is a portion of the code that does the rendition:
RenditionDefinition renditionDef = registry.getRenditionService()
.loadRenditionDefinition("pdfRendition");
ChildAssociationRef renditionAssoc = registry.getRenditionService()
.render(nodeRef, renditionDef);
Please let me know if you if there's a better way to do this.
Thanks,
Somu