Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8055233
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T08:19:36+00:00 2026-06-05T08:19:36+00:00

I need to generate SVG from given DXF file. I try to archive that

  • 0

I need to generate SVG from given DXF file. I try to archive that by using kabeja package. This is the code that they gave on their web page.

import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import org.xml.sax.ContentHandler;

import org.kabeja.dxf.DXFDocument;
import org.kabeja.parser.DXFParseException;
import org.kabeja.parser.Parser;
import org.kabeja.parser.ParserBuilder;
import org.kabeja.svg.SVGGenerator;
import org.kabeja.xml.SAXGenerator;
 public class MyClass{
   public MyClass(){
        ...
 }
public void parseFile(String sourceFile) {

Parser parser = ParserBuilder.createDefaultParser();

try {
 parser.parse(new FileInputStream(sourceFile));

 DXFDocument doc = parser.getDocument();

     //the SVG will be emitted as SAX-Events
     //see org.xml.sax.ContentHandler for more information 

     ContentHandler myhandler = new ContentHandlerImpl();

     //the output - create first a SAXGenerator (SVG here)
 SAXGenerator generator = new SVGGenerator();

 //setup properties
 generator.setProperties(new HashMap());

 //start the output
 generator.generate(doc,myhandler);


} catch (DXFParseException e) {
     e.printStackTrace();
} catch (IOException ioe) {
     ioe.printStackTrace();
}
}
}

Hear is the code that provided by the kabeja development group on sourceforge web site. But in above code I noticed that some of the classes are missing on their new package. for example

         ContentHandler myhandler = new ContentHandlerImpl();

In this line it create contentHandlerImpl object but with new kabeja package it dosn’t have that class.So because of this it doesn’t generate SVG file. So could some one explain me how to archive my target by using this package.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T08:19:38+00:00Added an answer on June 5, 2026 at 8:19 am

    Try to read symbol ContentHandlerImpl not found from kabeja’s forum

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need to generate a .PO file from a .properties file using msgcat from
I need to generate Entities/Object from selected tables - not all. Is this possible
I need generate codes from this letters $a = array( 'B','C','D','F','G','H','J','K','L','M','N','O', 'P','Q','R','S','T','V','W','X','Y','Z','1','2', '3','4','5','6','7','8','9','0' );
I need to get an attribute from svg file on classic asp. But my
I need to generate a couple of objects from lists in Javascript. In Python,
I need to generate report that will show number of new / changed rows
I need to generate some token that can only take on a range of
I need to generate an editable xml file to supply content to a flash
Given a set of floorplans (in Autocad, svg, or whatever format need be...), I
I need to generate a controlled sequence of pseudo-random numbers, given an initial integer

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.