PDF Renditions not working for Office formats using Viewer

Showing results for 
Search instead for 
Did you mean: 
Member II

PDF Renditions not working for Office formats using Viewer

Hello All,

We are facing an issue with generation of PDF renditions for MS Office formats. 

We see in trace that it is successfully created pdf document but giving unable to load te preview of content error on the application. Also, when we navigate to the content location given in the log files in content store it is not found in the specified location.

There are no errors in the logs during rendition generation, it always shows rendition successfully generated.

2023-11-17 11:59:20,946 DEBUG [org.alfresco.repo.content.transform.TransformerLog] [pool-2-thread-9] 51 xlsm pdf INFO test.xlsm 187 KB 1,433 ms JodConverter<<Proxy>>
2023-11-17 11:59:20,946 TRACE [org.alfresco.repo.content.transform.TransformerDebug] [pool-2-thread-9] 51.1 Finished in 1,433 ms
2023-11-17 11:59:20,946 DEBUG [org.alfresco.repo.content.transform.AbstractContentTransformer2] [pool-2-thread-9] Completed transformation:
reader: ContentAccessor[ contentUrl=store://2023/11/14/16/17/53b5c197-f6e6-4cb0-b22c-2ee9c94df1bf.bin, mimetype=application/vnd.ms-excel.sheet.macroenabled.12, size=191537, encoding=UTF-8, locale=en_US]
writer: ContentAccessor[ contentUrl=store://2023/11/17/11/59/2e161acd-c765-44b6-b304-5be7507cf124.bin, mimetype=application/pdf, size=165373, encoding=UTF-8, locale=en_US]
options: {maxSourceSizeKBytes=-1, use=pdf, contentReaderNodeRef=workspace://SpacesStore/0ab8f567-b652-49d7-85fa-276c30b4fe9f, readLimitKBytes=-1, contentWriterNodeRef=null, pageLimit=1, flashVersion=9, timeoutMs=-1, maxPages=-1, sourceContentProperty=null, targetContentProperty=null, includeEmbedded=null, readLimitTimeMs=-1}
transformer: ProxyContentTransformer
2023-11-17 11:59:20,947 DEBUG [org.alfresco.repo.content.transform.TransformerDebug] [pool-2-thread-9] 51 Finished in 1,435 ms

When we run the below script to generate the rendition, it is creating the rendition.

var document = search.findNode("");
var renderingEngineName = 'reformat';
var renditionDefinitionName = 'cmSmiley Tonguedf';
var renditionDef = renditionService.createRenditionDefinition(renditionDefinitionName, renderingEngineName);
renditionDef.parameters['mime-type'] = 'application/pdf';
var printRendition= renditionService.render(document, renditionDef);

Has anyone come across this situation?. Please suggest your thoughts and any solutions available to fix the issue?.