I have a java web application with Jquery and HTML5 on front end. We are using CMIS library to download the documents uploaded. We now want to preview the alfresco documents in browser with zoom and scrol facility. Please suggest a suitable plugin/api that can be integrated for this.
I read on this :
https://community.alfresco.com/docs/DOC-6802-alfresco-one-rest-api-previewing-content
However, is this plugin suitable for my requirement and will it support preview of different types of documents that alfresco supports or is useful for only PDF?
Hi. We use pdf.js (see PDF.js ) We simply created a webscript that takes the nodeRef of the document, uses the renditionService to create a PDF rendition and returns the rendered file download URL (consumed by PDF.js).
example in JavaScript: (see Rendition service | Alfresco Documentation )
var renditionDef = renditionService.createRenditionDefinition('cmdfExport', 'reformat');
renditionDef.parameters['mime-type'] = format;
var renderedNode = renditionService.render(node, renditionDef);
Ask for and offer help to other Alfresco Content Services Users and members of the Alfresco team.
Related links:
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.