I created one custom web application. through that i am uploading some document to alfresco repository. i also created one PDF viewer to view document in UI.
Now the problem is, i am only able to view PDF type of document, but i am uploading different type of document in repository.
So i want a rendition copy of all documents which i uploaded in repository.
i already have written CMIS code to fetch document and display in viewer.
now i just want rendition copy of document.
can any one help me with this. if possible, please provide sample source code.
Thanks in advance
I hope I have well understood your question :
Lets admit that your alfresco is well configured and that when you go on share, your document (.doc & Cie) is rendered in the viewer.
If your document has this nodeRef :
Then you can have a pdf rendering with this url :
This way, you always handle pdf in your application.
Be aware that the rendering can take some time and ressource from the server.