Is there a pure java library for converting DXF to PNG? - java

Need to convert DXF files to PNG. Found a library called kabeja -- http://kabeja.sourceforge.net/
The conversion however is limited. It does not work with fill patterns. Any better tools?

There is this java app: http://www.escape.de/~quincunx/dxfviewer/
You could mail the guy asking for the source and modify it to your needs.

Related

How can convert png file for iphone to standard png file using java

You know, png file for iphone can't display using image reader on windows.
How can convert png file for iphone to standard png file using java?
Is there any open-source library to do this?
Any response will be much appreciated.
Can Java read the 'png file for iphone'? If so, it would be trivial to write it back out1 to a PNG in a form that Windows can read.
If not you need to look into either JAI or an SPI that supports that flavor of PNG.
See ImageIO.write(RenderedImage,String,File) for details.
As leonbloy said, iOS-optimized PNGs are actually not PNGs at all, they are considered to be "CgBI" format:
http://iphonedevwiki.net/index.php/CgBI_file_format
I know this wasn't around when the question was first asked, but here's a Java converter implementation:
https://github.com/viphe/ipng-converter
yes you can convert iPhone PNG file to standard file using Java. Please go thought below link for script.
https://github.com/CuelogicTech/Convert-iOS-Application-PNG-images

Java API for vsd or vdx file generation

Is there any library to generate Visio files from Java?
DatadiagramML schema (vdx) is availible on http://www.microsoft.com/en-us/download/details.aspx?id=23976, but it looks very complicated and I hope for any API?
Some Options for You:
VisioAutomation.VDX
I wrote a library called "VisioAutomation.VDX" that may be of some help to you. It is written in C# but should be a straightforward conversion to Java.
You can get the source code here: https://github.com/saveenr/VisioAutomation
pkgVisio
http://pkgvisio.codeplex.com/
For the Visio 2013 XML format
Visio's own API is a COM API therefore if your application is on Windows you could use a Java to COM bridge and use Visio to generate the drawings. You may have to purchase a Visio license for each PC running you application and there are licensing restrictions on using this method in a server scenario.
An alternative which you may want to consider is using a library which generates a non-Visio file format Visio supports such as SVG.

Video Transcoding/Conversion using Java

I would like to convert a video from one format to another. Initially, I want to convert MP4 to AVI or any other more suitable video format.
Came across the ffmpeg library. Is is the best solution?
Came across Xubber and Jave for the same? Any experiences?
I tried jffmpeg that is a direct java wrapper on ffmpeg, but didn't found much documentation over that so moved on.
I tried to use Xubber and succeded also but it requires lot of pre-configurartions like you have to install .exe file prior and set XUBBER_HOME vars etc.
I have found nice and easy to implement solution ie JAVE http://www.sauronsoftware.it/projects/jave/index.php
Try this one.

Native Java document parser and converter library / linux based document converters

I'm looking for a Java library which can do the following:
parse emails in *.eml or *.msg format for attachments of type DOC,DOCX,JPEG,PNG,GIF,TXT,XLS,XLSX,PPT,PDF and convert the attachmens to the TIFF format.
It can be either open source or a comercial library. Alternatively I'm looking for command line tools for linux doing this. We already tried open office, but there are too many problems with some document formats.
UPDATE:
What I found out by research up to now:
For parsing emails and extracting attachments, JavaMail (http://www.oracle.com/technetwork/java/javamail/index.html) is a good choice.
For converting documents, JodConverter (http://code.google.com/p/jodconverter/) is a confortable library. However it's only a wrapper for open office, so if there are issues with open office (and I do have often trouble with openoffice) to convert a document, you will have them also with JodConcerter.
In conclusion I had no luck (up to now) to find any document conversion library implemented in native java, which handels all common document formats, neither open source or even commercial. It seems to be a real market gap.
RainbowPDF may fit: its a commercial server based conversion tool with Java API.
If you've got a Windows server, have a look at NEEVIA Document Converter Pro. It has some mail functionality.
Apace POI is an interface to read the content of Microsoft Office documents. You will have to code the image generating and layouting components on your own. Nervertheless it reads Outlook MSG format.
Apache POI - the Java API for Microsoft Documents. However I don't know how to easily convert parsed document to TIFF.
May be a mix of different approaches could be useful? Depending on your requirements, could be possible to use several libraries to convert all the formats you need to manage: Microsoft Office, Adobe PDF, some different image formats and simple text files.
I mean, you can create a process that, depending on the type of the file extracted (using Java Mail), you could recognize what kind of format the file has and continue processing with the right conversion mechanism using the suitable library. Then you will idenfity if a file it's an image to convert, try Java Advanced Imaging, if it's a Microsoft Office file, try Apache POI and so on. For managing PDF files, you can try Apache PDFBox it's another good and opensource solution.
By the way, if you are looking not only for a Java approach, may be this thread may help you.
I don't know if there are better commercial solutions than #ChrisGer commented.
Do not waste your time looking at Apache POI, as it can only parse the content of the Office files but is not suitable for rendering it.
Since there are OpenOffice servers available, I suggest you do this. I also know you can easily use DCOM to talk with Microsoft Office apps, maybe a Java->DCOM bridge is more up to the task. However, this is not even recommended by Microsoft (so I suppose the JodConverter thing is equally unstable).

MP4 container writer in Java

I would like to find a FREE MP4 (container) writer for Java. I do not need an encoder, only something which can write the correct atoms given their expected values. Bonus for such a library that also can write "valid" F4V.
I would prefer a pure Java solution rather than something using JNI or external executables.
Even though my answer comes very late you could have a look into my MP4 Parser/Unparser at Github. You can parse MP4 files, modify them and write the result. You can even start from scratch creating boxes programatically and write your object representation to some sink.
You can have a look at JCodec ( http://jcodec.org ). It contains an MP4 library and MP4 demuxer and muxer.
May be you are looking for something like StreamBaby.
Can't vouch for it, but red5 is an open source flash server written in Java, which claims support for streaming mp4 and has implementations of mp4 IO objects which may be able to create said format.
Also, IBM created their Toolkit For MPEG-4 a while back and though it's not free, it might help.
FFMPEG's java bindings?
http://fobs.sourceforge.net/f4jmf_first.html
Or simpler a JNA proxy over some C++ MP4 library.
I have implemented a QuickTimeWriter class which can write a QuickTime container in pure Java.
As far as I know, the QuickTime file format is structurally equivalent to MPEG-4 Part 14. There are only a few minor differences in the fields inside atoms/boxes.
So, with an MPEG-4 spec on your lap, and a few hours of work, you should be good.
The Java I've seen which modifies MP4 files would invoke Nero AAC Codec externally (a Windows native .exe which Nero does not supply the source for) to modify AAC files (which are Apple's audio-only MP4 files). It works for audio only, not to video.

Categories

Resources