javascript - How to show a document from Alfresco in own application? -


i making application gets data alfresco , want show document (which in alfresco) on page controls going previous , next page. found jquery media library, opens pdf files. question is, best way of showing .doc, .docx, .ppt, .pptx, etc. files without going alfresco itself? i've tried prism viewer , google docs viewer both cant open files alfresco reason.

thanks!

you should take @ pdf.js - pdf.js browser-side pdf viewer. if you're using current head of alfresco community, alfresco transforms content automatically pdf , stores pdf rendition (as new new alfresco share viewer uses pdf.js internally).

there community addon alfresco share 4.2 uses pdf.js document viewer & contains pdf rendition configs. should starting point: https://github.com/share-extras/media-viewers

or checkout current head: https://github.com/alfresco/community-edition here current thumbnail-service-context.xml pdf rendition defined: https://github.com/alfresco/community-edition/blob/master/projects/repository/config/alfresco/thumbnail-service-context.xml#l219


Comments

Popular posts from this blog

how to proxy from https to http with lighttpd -

android - Automated my builds -

python - Flask migration error -