cancel
Showing results for 
Search instead for 
Did you mean: 

Repository: Cannot View Document Preview After Clicking On Document

lolu
Champ on-the-rise
Champ on-the-rise
Hello everyone! Excited to be here and I look forward to learn more.

We currently run the Alfresco Community Edition. Normally, when you click on a document in the repository, you are led to a new page where you can view the document itself (all pages), make comments and perform other actions like workflow. However, I notice that for documents of sizes 5mb and above, this is not possible. I can only view the front page and no other pages at all. In fact, for some other documents there is no preview at all.

Why is this? And is there a way it can be rectified?

Many thanks for your kind and patient response!
6 REPLIES 6

niketapatel
Star Contributor
Star Contributor
Hi Lolu,

Alfresco allows you to configure/set document preview limit.

There are some Out-of-box configuration limit that has been set by Alfresco as per document mimetype so you are not able to see documents preview with size above 5mb.
You can check OOB configuration in transformers.properties located at \tomcat\webapps\alfresco\WEB-INF\classes\alfresco\subsystems\Transformers\default\

This configuration can be done in many ways for different mimetype example, based on size of document, timeout etc…

For detail please check - http://wiki.alfresco.com/wiki/Content_Transformation_Limits_4.0#Setting_Transformer_Limits

You increase this limit as per you requirement.

lolu
Champ on-the-rise
Champ on-the-rise
Hi Niketa,

Thanks for taking the time to throw more light.

However, I browsed to the Alfresco installation folder on our server and this is how far I could get:

…\Alfresco\tomcat\webapps\alfresco\WEB-INF\classes\alfresco\subsystems

I can't see the Transformers folder. What do I do? Our Alfresco Community version is 4.2.c

😕

niketapatel
Star Contributor
Star Contributor
Hi Lolu, I am not sure but I think this transformation has been moved to Subsystem after 4.2d or may be in later version.

For your version - 4.2c , you can find these properties in repository.properties located at - tomcat\webapps\alfresco\WEB-INF\classes\alfresco

For example: pptx file conversion limit is set to 4MB. You can check these properties for all different mimetype and can increase limit as per your requirement.

# Transforms to PDF
content.transformer.OpenOffice.mimeTypeLimits.pptx.pdf.maxSourceSizeKBytes=4096

# Transforms to SWF
content.transformer.OpenOffice.Pdf2swf.mimeTypeLimits.pptx.swf.maxSourceSizeKBytes=4096


lolu
Champ on-the-rise
Champ on-the-rise
Thanks alot Niketa!

I was able to locate the repository.properties file and have set the limit to 10MB. Restarted the server and it worked fine.

However, I want to ask:
1. What's the purpose of setting the limit?
2. Is there a downside of setting no limits (file size) to the files that can be previewed?
3. In your consultative capacity, what other options do you recommend for preview of documents with bigger sizes?

Thanks for the time! Smiley Very Happy

jenifer7
Champ in-the-making
Champ in-the-making
Hi Lolu ,
Now can you preview documents of sizes 5mb and above??
I cannot. I change the value of
# Transforms to PDF
# Transforms to SWF
to 10MB limit. but I cannot preview.
I currently run the Alfresco 5.0.a.
And then it can't display in Chrome browser. Please any Suggestion . Thanks in Advance.

balai_kidz
Champ in-the-making
Champ in-the-making
Got similar problems after migrating from 4.2 to 5.0.a, cannot preview the pdf files.