cancel
Showing results for 
Search instead for 
Did you mean: 

Alfresco large file preview problem

mhmmderen
Champ on-the-rise
Champ on-the-rise
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 ACCEPTED ANSWER

afaust
Legendary Innovator
Legendary Innovator

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 answer in original post

4 REPLIES 4

narkuss
Star Contributor
Star Contributor

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
Champ on-the-rise
Champ on-the-rise

image

Yes same . Only one volume has been added.

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
Legendary Innovator
Legendary Innovator

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...