cancel
Showing results for 
Search instead for 
Did you mean: 

Document viewer

harishk
Champ in-the-making
Champ in-the-making
I want to view any uploaded document as pdf when anchor link is clicked.
For this problem I need to transform the document (like .doc, .xls etc) to pdf before downloading it so that it can be viewed in browser. One solution to this problem is :
Override DownloadContentServlet and apply transformation by using one of the transformer in alfresco.

Now I want to know is there any other way to resolve this problem (like using action or actionListener).  :?:
4 REPLIES 4

zaizi
Champ in-the-making
Champ in-the-making
Check out the Thumbnail service implementation. If you look at thumbnail-service-context.xml, you'll see examples for doc -> png (various sizes) and doc -> flash. You can create one that is doc -> pdf. You can use the thumbnail webscript (thumbnail.get.*) to get your custom thumbnail. Or just use the webscript as your download link. Modify the UI to include this link.

harishk
Champ in-the-making
Champ in-the-making
Thanks for your suggestion, but I am still facing problem.
I changed UI link to point to "http://localhost:8080/alfresco/service/api/path/workspace/SpacesStore/9c3862c9-f85b-4380-b47b-688352...".
But it is giving 500 server error. When I did debugging, I found that reader object is null because of contentProperty. I don't know what property it is referring to and how to set it as I am newbe to alfresco.

I want a pdf version of the content(document) should be opened when I click on above link. :?

harishk
Champ in-the-making
Champ in-the-making

gangadharjwala
Champ in-the-making
Champ in-the-making
Hi team,

here the client requirement is they want to edit the document or pdf in alfresco with out using googledocs because the users systems they don't have the internet connection to edit the Document.

So they want view a document in browser with out net connection in the system.

so can u please help me out how can i edit the document or pdf programmatically or is there any way to do the same.