cancel
Showing results for 
Search instead for 
Did you mean: 

How to change the file preview? (java backed)

dark_rider
Champ on-the-rise
Champ on-the-rise
We have performed to encrypt a file content with Java API, but the preview has not changed, still shown the old content. The preview changes only for .txt files, not for .doc, .pdf files. So how could we change the preview, to show nothing is better than that. We don't want to see the old content, it is very important for us.

this.services.getPreviewURIService()  the service does not provide to change the preview

How could we fix it?

Best Regards…
2 REPLIES 2

ssaravanan
Champ in-the-making
Champ in-the-making
If you have used a special aspect applied on all encrypted docs, then do a check for that aspect on all docs on document library, if its true use a place holder image rather than the image preview created for the document. You might need to edit couple of javascript files on the document library page to achieve this. Your placeholder image will indicate that the particular document is encrypted.

dark_rider
Champ on-the-rise
Champ on-the-rise
Thanks for your reply but I do not understand exactly what should I do. Suppose I apply an aspect for it, I have to perform it with Javascript API on server side but I am already on server side with Java-backed. Is there any way to solve the problem with Java-backed. For example how could I reach the preview file, I think deleting the preview file can solve the problem. Any idea?