can we read with calculating object surface as example of a drawing autocad forms using java?
I found some package that can read and display the dxf file
I don't have experience with AutoCAD files and java, but per your comment regarding C#...You can use the AutoCAD .NET API with C# or VB.net. There is also the ObjectARX library for C++. These are shipped with AutoCAD and are typically used for building AutoCAD plugins.
If you don't have access to AutoCAD, or need to run your application outside of AutoCAD I'd suggest looking into Open Design Alliance. They have libraries for manipulating Autodesk files outside of the Autodesk suites.
Related
I'm developing a java library for use on Android devices and java desktop applications.
In this library, I want to pack several files in one file with a custom extension.
The only need I have at that extension is to add and delete files (text and images).
What would be the simplest way to implement this?
I'm trying with tar and zip. But in these formats I can not delete entries easily.
I know ZipFileSystem, but it depends on nio and Android does not have full support.
I want a solution that is purely java, and can run on android and java desktop applications.
I want a format that works as a folder.
Thank you.
Excuse my English.
I've been researching this for some hours now, but to no avail. The most promising library seems to be Apache POI, but I'm not quite sure (from reading its documents) that it can perform the simple task of detecting open instances of PowerPoint and determining their path.
I used to accomplish this chore in Visual Basic (yes, I know it's dreadful) by the use of this line:
Set PPTXApp = GetObject(, "Powerpoint.Application")
POI can manipulate various Microsoft Office type documents, it's not made to manipulate running apps via COM, which is what you were doing in VB.
COM interaction isn't something that's built into Java, but there are third party libraries like Jacob or COM4J that may help you.
Another SO post that may be interesting for you can be found here
Firstly there is an almost identical question but the answer is not really satisfactory.
Is there a Java or Ruby library for generating MOBI ebook documents?
The answer basically gives a link to amazon and discusses using command line tools which is not really satisfactory for a web app. I want a regular jar file w/ an api that i can invoke without any nasty process invocation.
Does anyone know of a FOSS library that provides this functionality ? I would rather simething like ITEXT that allows me to build the document and then writes the mobi file rather than something that converts an already ready PDF into the MOBI.
The best I've been able to find is a ruby library called KindleR. https://github.com/josh/kindler
I've only used it to convert basic HTML pages to mobi with pretty good success. I've never converted anything with more complicated formatting, so YMMV.
I am trying to write a Java application that will generate SVG image based on XML file. The application should also be able to show SVG file. My application should run on Android platform and desktop PCs. I read about Swing + Batik but afaik it will not work on Android. What is the best library to achieve this ?
This article in Code Project deals with the subject. Two approaches are presented:
android-libsvg library.
Anti Grain Geometry engine.
Both solutions have dependencies on native code library, so you would need JNI.
There is also svg4mobile project, which only uses Java.
per this thread: libsvg ported
libsvg has been ported to android..see thread for details. You need a crystax form of NDK, ie exceptions enabled..build/install doc here at:build-install-doc
Also try this open-source library, Apache 2.0 license:
SVG-Android
Performance is good as the actual drawing is handled natively by an android.graphics.Picture object.
I am looking to create swf from Java, like ming from C/C++.
Is there anything like this for Java?
JavaFX was actualy created for these purposes.
TransformSWF from Flagstone Software is a SWF-generating library for Java.
It supports through Flash 7, is under reasonably active development, and has pretty good docs on its home page. BSD licensed.
Its sister TranslateSWF is meant for compiling AS1 into SWF-embeddable bytecode from Java.
maybe OpenLaszlo? not from java, but using java at least
JavaSWF - Macromedia Flash File Format
JavaSWF provides a pure Java wrapper for the Macromedia Flash file format (known as SWF). It enables the parsing and generation of Flash content within Java applications and servlets.
You could always use SWIG to generate a JNI wrapper for Ming.