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?
Solved! Go to Solution.
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
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
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
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?
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
Dear Kintu,
i have sharing you log file error.
Execution result: os: Linux
command: /opt/alfresco-community/common/alfresco-pdf-renderer/alfresco-pdf-renderer --height=100 --width=100 --maintain-aspect-ratio --page=0 /opt/alfresco-community/tomcat/temp/Alfresco/AlfrescoPdfRendererContentTransformerWorker_source_2781239717135089390.pdf /opt/alfresco-community/tomcat/temp/Alfresco/AlfrescoPdfRendererContentTransformerWorker_target_7552665682032344967.png
succeeded: false
exit code: 1
out: Rendering PDF file /opt/alfresco-community/tomcat/temp/Alfresco/AlfrescoPdfRendererContentTransformerWorker_source_2781239717135089390.pdf.
err: Load pdf docs unsuccessful: File not in PDF format or corrupted.
org.alfresco.error.AlfrescoRuntimeException: 07190030 Creation of thumbnail 'doclib' failed
at org.alfresco.repo.thumbnail.CreateThumbnailActionExecuter.executeImpl(CreateThumbnailActionExecuter.java:213)
Caused by: org.alfresco.service.cmr.repository.ContentIOException: 07190021 Content conversion failed:
reader: ContentAccessor[ contentUrl=store://2019/8/19/10/17/4d2eb93a-8f5a-44f6-9b48-1f7d84106556.bin, mimetype=image/vnd.dwg, size=148638, encoding=UTF-8, locale=en_US]
writer: ContentAccessor[ contentUrl=store:///opt/alfresco-community/tomcat/temp/Alfresco/FailoverTransformer_intermediate_ProxyContentTransformer_8722233161378430758.png, mimetype=image/png, size=0, encoding=UTF-8, locale=en]
options: {use=doclib, contentReaderNodeRef=workspace://SpacesStore/028dc435-10f0-4b98-94b2-cde439143b5b, contentWriterNodeRef=null, sourceContentProperty=null, imageAutoOrient=true, targetContentProperty=null, commandOptions=, imageResizeOptions=ImageResizeOptions [width=100, height=100, maintainAspectRatio=true, percentResize=false, resizeToThumbnail=false, allowEnlargement=false], includeEmbedded=null}
limits: {timeoutMs=120000, pageLimit=1}
claimed mime type: image/vnd.dwg
detected mime type: image/vnd.dwg
transformer not found
Dear Team,
Can u please suggest me on this topic?
i stuck on this error.
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.
Dear Abhinav,
I have already added into global-properties but still it doesn't work.
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.