Hi guys,
I am not able to view files with extension .doc in Alfresco.
The following message occurs:
This document cannot be previewed.
Click here to download it.
Alfresco version: 6.1.1
Operating system version: Ubuntu linux 18.04.3 LTS
Can you help us?
With best regards,
Your doc file cann't not be converted to pdf successfully.Maybe it is too large that exceeds max size limit of libreoffice transformer or libreoffice just can't convert it.
Can you see more about content transform in:
https://docs.alfresco.com/5.2/references/dev-extension-points-content-transformer.html
and
https://docs.alfresco.com/6.0/concepts/managing-transformations.html
maybe its help you with it.
Hi kaynezhang,
The file is only 11kb
I want to view the file with the .docx extension
What can it be?
Have you installed LibreOffice? If you have ,you can try to open your doc file wich it,and see what happens
Make sure libraoffice is running.
Hi kaynezhang,
Libreoffice is installed.
Version: 6.2.8
What is the command to open the file?
With best regards
Hi kaynezhang,
Alfresco was installed via Loftux script.
alfinstall.sh
It automatically installs the moment you run the script.
pwd
/opt/libreoffice6.2/program
./soffice --convert-to pdf /home/jbrasil/teste-jbrasil.docx --outdir /home/jbrasil/pdf/
l /home/ brasil/pdf/
total 8.0K
-rw-r - r-- 1 root 7.1K Sep 23 14:29 teste-jbrasil.pdf
I ran the soffice command. And generated the .pdf file
By libreoffice he doesn't find the executable
libreoffice --convert-to pdf /home/jbrasil/teste-jbrasil.docx --outdir / home / jbrasil / pdf /
Command 'libreoffice' not found, but can be installed with:
snap install libreoffice # version 6.4.5.2, or
apt install libreoffice-common
See 'snap info libreoffice' for additional versions.
Anything else to be done?
With best regards.
i resolved it in my client with this form....
### External executable locations ###
#ooo.exe=/opt/alfresco-community/libreoffice/program/soffice.bin
#ooo.enabled=true
#ooo.port=8100
img.root=/opt/alfresco-community/common
img.dyn=${img.root}/lib
img.exe=${img.root}/bin/convert
alfresco-pdf-renderer.root=/opt/alfresco-community/common/alfresco-pdf-renderer
alfresco-pdf-renderer.exe=${alfresco-pdf-renderer.root}/alfresco-pdf-renderer
content.transformer.OpenOffice.extensions.docx.pdf.maxSourceSizeKBytes=-1
content.transformer.OpenOffice.extensions.doc.pdf.maxSourceSizeKBytes=-1
content.transformer.OpenOffice.extensions.xlsx.pdf.maxSourceSizeKBytes=-1
content.transformer.OpenOffice.extensions.xlsm.pdf.maxSourceSizeKBytes=-1
content.transformer.OpenOffice.extensions.xls.pdf.maxSourceSizeKBytes=-1
content.transformer.OpenOffice.extensions.pptx.pdf.maxSourceSizeKBytes=-1
content.transformer.OpenOffice.extensions.ppt.pdf.maxSourceSizeKBytes=-1
content.transformer.OpenOffice.extensions.ppsx.pdf.maxSourceSizeKBytes=-1
in alfresco-global.properties
Ask for and offer help to other Alfresco Content Services Users and members of the Alfresco team.
Related links:
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.