Alfresco large file preview problem

cancel
Showing results for 
Search instead for 
Did you mean: 
mhmmderen
Active Member

Alfresco large file preview problem

Jump to solution
We are using following versions
 

ACS 6.2

ACA 1.9

PDf renderer 2.1.0

LibreOffice 2.1.0

We have problem while viewing the documents in Alfresco. If file is greater than 800kb, View show it as an image and ony shows the first page of it.

Steps to produce process:

1) Upload a document which have size more than 800 kb

2) click view for this document

3) Pdf render shows the only first page of it, also it shows it as an image

settings

 I am writing these settings into docker-compose. but the same problem persists.

İs there config to solve this problem. Could you help me

1 Solution

Accepted Solutions
afaust
Master

Re: Alfresco large file preview problem

Jump to solution

These properties are no longer supported in Alfresco 6.2 - configuration must be applied to the T-Engines themselves, e.g. as a custom engine_config.json (default for LibreOffice: https://github.com/Alfresco/alfresco-transform-core/blob/master/alfresco-docker-libreoffice/src/main...)

It seems that this file reference is hard-coded (https://github.com/Alfresco/alfresco-transform-core/blob/master/alfresco-transformer-base/src/main/j...) and you would have to build a custom JAR + Docker image to provide a custom configuration. It seems Alfresco has really thought long and hard about configurability and decided against it...

View solution in original post

4 Replies
narkuss
Established Member II

Re: Alfresco large file preview problem

Jump to solution

I think you are missing some configuration about transformers. Check out https://github.com/Alfresco/acs-community-deployment/blob/master/docker-compose/docker-compose.yml, and compare your docker-compose file configuration with this one.

Also check this project https://github.com/Alfresco/alfresco-docker-installer, and compare your docker-compose with the one generated by this tool. 

mhmmderen
Active Member

Re: Alfresco large file preview problem

Jump to solution

screenshot-git.detaysoft.com-2019.12.11-09_29_54.png

Yes same . Only one volume has been added.

narkuss
Established Member II

Re: Alfresco large file preview problem

Jump to solution

Then try to add this property to the acs service, in environment JAVA_OPTS:

-Dcontent.transformer.JodConverter.extensions.docx.pdf.maxSourceSizeKBytes=20240

I don't know exactly how Alfresco handles this properties in version 6.2 and T-engines, but it worked in version 6.1.

afaust
Master

Re: Alfresco large file preview problem

Jump to solution

These properties are no longer supported in Alfresco 6.2 - configuration must be applied to the T-Engines themselves, e.g. as a custom engine_config.json (default for LibreOffice: https://github.com/Alfresco/alfresco-transform-core/blob/master/alfresco-docker-libreoffice/src/main...)

It seems that this file reference is hard-coded (https://github.com/Alfresco/alfresco-transform-core/blob/master/alfresco-transformer-base/src/main/j...) and you would have to build a custom JAR + Docker image to provide a custom configuration. It seems Alfresco has really thought long and hard about configurability and decided against it...