Skip to content

loftuxab/alfresco-vector-transformations-module

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Alfresco Vector Transformations Module

Introduction

This module adds transformation support for vector file types including SVG (Scalable Vector Graphics) and DWG (AutoCAD).

Announcement

For the official announcement from Loftux AB, please see the following blog post.

Supported Transformations

  • DWG to PNG
  • DWG to SVG
  • SVG to PNG

Prerequisites

Adding to your existing Alfresco Project

  1. Build the project and install it on your local Maven repository using mvn clean install

  2. 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.

Configuration

  1. Copy dwg2bmp_alfresco_fallback and dwg2svg_alfresco_fallback in containing folder for dwg2bmp and dwg2svg from QCad.
  2. 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.

Contributing

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.

License

Please see LICENSE.md

Author

Sponsored By

Loftux AB (English) https://loftux.com / Loftux AB (Swedish/Svenska) https://loftux.se

Loftux AB

Releases

No releases published

Packages

No packages published