This module adds transformation support for vector file types including SVG (Scalable Vector Graphics) and DWG (AutoCAD).
For the official announcement from Loftux AB, please see the following blog post.
- DWG to PNG
- DWG to SVG
- SVG to PNG
- rsvg-convert (http://webadventures.at/2012/04/29/convert-svg-png/)
- QCad with terminal tools (http://www.qcad.org/en/qcad-downloads-trial)
-
Build the project and install it on your local Maven repository using
mvn clean install
-
Add the following as a dependency in your repository AMP module.
<dependency> <groupId>se.loftux.modules.vector-transformations</groupId> <artifactId>repo-amp</artifactId> <version>1.0-SNAPSHOT</version> <type>amp</type> </dependency>
- Add additional overlay configurations necessary based on the Maven archetype being in the project.
- Copy
dwg2bmp_alfresco_fallback
anddwg2svg_alfresco_fallback
in containing folder for dwg2bmp and dwg2svg from QCad. - Specify paths in
alfresco-global.properties
Example configuration:
#DWG -> PNG, SVG
dwg-convert.dir=/Applications/QCAD.app/Contents/Resources
dwg-convert.exe=${dwg-convert.dir}/dwg2bmp_alfresco_fallback
dwg-svg-convert.exe=${dwg-convert.dir}/dwg2svg_alfresco_fallback
content.transformer.Dwg2png.extensions.dwg.png.supported=true
content.transformer.Dwg2svg.extensions.dwg.svg.supported=true
#SVG -> PNG
svg-png-convert.dir=/usr/local/bin
svg-png-convert.exe=${svg-png-convert.dir}/rsvg-convert
content.transformer.Svg2png.extensions.svg.png.supported=true
###Frequently Asked Questions
How can I improve the quality of the transformations from DWG to PNG?
You can try removing the direct transformation from DWG to PNG and creating DWG -> SVG -> PNG chain.
Does Zoomable for Alfresco come bundled with this module?
No. Zoomable for Alfresco is not available with this module. However, Zoomable for Alfresco will include Alfresco Vector Transformations module.
For more information on Zoomable for Alfresco, please contact Loftux AB.
Please feel free to contribute your transformations back in to this project.
If you notice any issues, please feel free to fork and contribute a pull request or file an issue.
Please see LICENSE.md
- Bhagya Silva (http://www.about.me/bhagyas), Software Architect, Loftux AB (http://www.loftux.com).
Loftux AB (English) https://loftux.com / Loftux AB (Swedish/Svenska) https://loftux.se