How to have video thumbnails in Alfresco 4.1.x?

For a project, I had to find how to generate thumbnails in Alfresco. My constraint was that it had to be implemented in 4.1.x and I remembered that there was something provided in Alfresco 4.2.x. I checked the ZIP of the installation file of Alfresco 4.2.x and I discovered 2 interesting files in the folderĀ /web-server/shared/classes/alfresco/extension:

HTML to PDF transformation with wkhtmltopdf


In some Alfresco implementations, you have to generate documents from metadata. You have a lot of options depending of constraints of the projects from text document to PDF. In my case, I had to generate a printable and exportable document from metadata. So, my idea is to generate an HTML file and to use the transformer from HTML to PDF in Alfresco. In my case, I have to create a document sexy and easy to read. It implies the use of CSS files and here is the result: