cancel
Showing results for 
Search instead for 
Did you mean: 

[Resolved] :open pdf file directly from Alfresco

unknown-user
Champ on-the-rise
Champ on-the-rise
Hi All

I can download the pdf file from the server to my machine. Now i have to change this functionaity.
I want to show that file to client without downloading. I have to add one link in jsp to view the pdf.
When you will click on the view link, it will go to the alfresco server and it will open the pdf file.
Can anyone please tell me how to open pdf that exists in alfresco.


Regards
Nishant
13 REPLIES 13

sans
Champ in-the-making
Champ in-the-making
Hi rleones,
Do not use the AuthenticationUtils.endSession and you should be able to see the pdf without logging in.

Thanks
Sans!!!

rleones
Champ in-the-making
Champ in-the-making
hummm!!! I've done this before I've seen this page and it had solved my problem. I was ending the connection. When I remove the line that ends the connection I started to be able to see the document with no log in!

Anyway, Thank you so much!

charanteja
Champ in-the-making
Champ in-the-making
Hi to All,
  I would like to know, "how can we open dashboard without user authentication". is there any way..
          Thanks,

ishaan
Champ in-the-making
Champ in-the-making
Hi all,

I have tried using the urls provided above, but however I see that the :
http://localhost:8080/alfresco/download/direct/workspace/SpacesStore/{uid}/{name}.pdf

Doesn't work with the alfresco 5.0.d, is there any other way to access the pdf directly so that I can use the embed or object tag to display it directly, some thing like, showContent?id={uid}.. is cmis providing some operations like that?

When ever I access the other way, http://localhost:8080/share/proxy/alfresco/slingshot/node/content/workspace/SpacesStore/{uid}/{name}... .. which is downloading the file. Which I don't want.

Quick reply is much appreciated.

Thanks,
Ishaan