THIS REPOSITORY IS NO LONGER MANTAINED!
Kabeja is a small library for parsing DXF-Files and converting this to SVG. It is licensed under the Apache Software License 2.0.
There are not all Entities of DXF supported yet. Text-Entities generate problems too.
Supported:
Arc Attrib Polyline Circle Line Blocks/Insert Text MText LWPolyline Solid Trace Ellipse Dimension Image Leader XLine Ray Hatch Spline MLine
Planned:
You can use Kabeja from CLI (Command Line Interface) or embed in your application.
Windows:
Linux:
sh kabeja.sh
or:
chmod a=rx kabeja.sh (only ones)
./kabeja.sh
Other:
in the Kabeja-folder try:
Help and pipeline list
java -jar launcher.jar --help
Convert to svg
java -jar launcher.jar -nogui -pipeline svg myfile.dxf result.svg
Convert to pdf|jpeg|png|...
java -jar launcher.jar -nogui -pipeline <pdf|jpeg|png> myfile.dxf
Normally Java uses 64 MB of your memory, to setup more use the following commandline switch:
java -Xmx256m -jar .....
in the 'lib'-folder try:
java -jar kabeja-svgview.jar
Copy the 'kabeja.jar' and 'kabeja-svg2dxf-cocoon.jar' to your WEB-INF/lib-folder of your Cocoon-Webapplication. Then you can use Kabeja as Generator like:
in your sitemap/subsitemap: