08-16-2019 06:17 AM
Dear Team ,
I had setup qcad integration for .dwg files with alfresco as per below,
1. Changes done in alfresco-properties file
### External executable locations ###
ooo.exe=/opt/alfresco-community/libreoffice/program/soffice.bin
#ooo.exe=/usr/bin/soffice
ooo.enabled=true
ooo.port=8100
#img.root=/opt/alfresco-community/common
img.root=/usr/local/bin
img.dyn=${img.root}/lib
#img.exe=${img.root}/bin/convert
img.exe=convert
alfresco-pdf-renderer.root=/opt/alfresco-community/common/alfresco-pdf-renderer
alfresco-pdf-renderer.exe=${alfresco-pdf-renderer.root}/alfresco-pdf-renderer
jodconverter.enabled=false
jodconverter.officeHome=/opt/alfresco-community/libreoffice
jodconverter.portNumbers=8100
# QCAD Configuration Properties #
transformer.strict.mimetype.check=false
dwg2pdf.root=/home/ubuntu/opt/qcad-3.23.0-trial-linux-x86_64
content.transformer.dwg2pdf.priority=50
content.transformer.dwg2pdf.extensions.dwg.pdf.supported=true
content.transformer.dwg2pdf.extensions.dwg.pdf.priority=50
content.transformer.dxf2pdf.priority=50
content.transformer.dxf2pdf.extensions.dxf.pdf.supported=true
content.transformer.dxf2pdf.extensions.dxf.pdf.priority=50
2. I have add mimetype file name as mimetypes-extensions-map.xml
<alfresco-config area="mimetype-map">
<config evaluator="string-compare" condition="Mimetype Map">
<mimetypes>
<mimetype mimetype="image/vnd.dxf" display="DXF Mimetype">
<extension>dxf</extension>
</mimetype>
</mimetypes>
</config>
</alfresco-config>
3. add 3 files into extension folder,
for that please refer attchement.
after adding this i restarted alfresco and tomcat,
But when i load dwg files, pdf content could not load error was occuring?
i dont know why this error ,
can u please suggest?
4. One another question is imagemagic required for .dwg file preview?
beacuse we are using common for pdf rendering.please suggest?
06-20-2020 03:41 PM
Ok I found the error. You need to mark the executables in your qcad directory as executables i.e chmod +x dwg2pdf once you install
08-19-2019 12:23 AM
Please refer this link,you might get some idea.
Alfresco QCAD Integration for CAD Files Preview | ContCentric
Thanks,
Sanjay Bandhniya
08-19-2019 05:07 AM
Dear Sanjay,
I had tried this. but still pdf content not loading error was occure.
as i mentioned it is necessary to use imagemagick library for pdf rendered because we are using common for that
and if it necessary then how to configure imagemagick with alfresco which is on ubuntu os?
Please suggest
08-19-2019 08:48 AM
Just try to disable OOTB transformers by adding following properties in alfresco-global.properties file.
content.transformer.double.ImageMagick.extensions.pdf.tiff.supported=false
content.transformer.complex.PDF.Image.extensions.pdf.tiff.supported=false
content.transformer.ImageMagick.extensions.pdf.tiff.supported=false
content.transformer.PdfBox.extensions.pdf.txt.supported=false
content.transformer.TikaAuto.extensions.pdf.txt.supported=false
Regards,
Kintu
08-19-2019 08:54 AM
Dear Kintu,
I have no idea about OOTB transformers, then how can i disable this transformers when
i dont know i have installed it or not?
08-19-2019 09:03 AM
I was getting the same issue when I applied the OCR. So I found that it was conflicting with the existing transformers and I disabled it using the above properties and it is working now.
Can you share the error logs?
Regards,
Kintu
08-22-2019 02:13 PM
OOTB transformers are available with Alfresco installation by default. You don't install anything additional.
As Kintu mentioned just try adding the above given properties in your alfresco-global.properties file and see if it works.
08-23-2019 12:24 AM
Dear Abhinav,
I have already added into global-properties but still it doesn't work.
06-20-2020 03:23 PM
+1 Even I am getting the same error. I am using Alfresco 6.2
06-20-2020 03:41 PM
Ok I found the error. You need to mark the executables in your qcad directory as executables i.e chmod +x dwg2pdf once you install
Explore our Alfresco products with the links below. Use labels to filter content by product module.