AnsweredAssumed Answered

Qcad .dwg files preview on alfresco

Question asked by aishu on Aug 16, 2019
Latest reply on Aug 20, 2019 by aishu

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?

Outcomes