cancel
Showing results for 
Search instead for 
Did you mean: 

Qcad .dwg files preview on alfresco

aishu
Champ on-the-rise
Champ on-the-rise

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?

1 ACCEPTED ANSWER

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

View answer in original post

12 REPLIES 12

sanjaybandhaniya
Elite Collaborator
Elite Collaborator

Please refer this link,you might get some idea.

Alfresco QCAD Integration for CAD Files Preview | ContCentric 

Thanks,

Sanjay Bandhniya

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

kintu_barot
Star Collaborator
Star Collaborator

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

ContCentric

Regards,
Kintu

aishu
Champ on-the-rise
Champ on-the-rise

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?

kintu_barot
Star Collaborator
Star Collaborator

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

ContCentric

Regards,
Kintu

abhinavmishra14
World-Class Innovator
World-Class Innovator

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. 

~Abhinav
(ACSCE, AWS SAA, Azure Admin)

Dear Abhinav,

I have already added into global-properties but still it doesn't work.

gb123alf2
Champ on-the-rise
Champ on-the-rise

+1 Even I am getting the same error. I am using Alfresco 6.2

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