cancel
Showing results for 
Search instead for 
Did you mean: 

Force Rendition Generation

imran
Champ on-the-rise
Champ on-the-rise
Hello Experts,

I see in alfresco the PDF renditions are lazily generated when user tries to preview a document from share UI.
Is there a way to force the repository auto generate the renditions after document creation or update rather than on preview? Could you please share your ides?
2 REPLIES 2

douglascrp
World-Class Innovator
World-Class Innovator
You can create a folder rule to execute a javascript.
In your javascript file, you can ask Alfresco to generate the thumbnail or the preview.

The code you need is:
document.createThumbnail("doclib");
or
document.createThumbnail("webpreview");

tybion
Champ in-the-making
Champ in-the-making
FYI, I have written a few extra notes about generating thumbnails in Alfresco 5.0.d in the following post - might be relevant to you ..

http://geofoss.net/2015/10/12/using-javascript-console-to-create-a-folder-rule-script-in-alfresco/