I want to generate pdf file from msg file using java. Mail body format should be same. I want to go with java libraries as system where i'm going to run this code may not have outlook installed.
I have tried rtfToHtml(Reader rtf) functions provided online but it is not working properly facing format issues.
I'm looking for open source api.
Thanks in advance.
You can use the free Java Based API Zeonpad. this library provide the api to convert msg file to pdf. Refer http://www.zeonpad.com/app/zeonpad-pdf-api.html
Example:
OutlookToPdf outlookToPdf = new OutlookToPdf();
OutlookToPdf.convert("D:\\input.msg", "D:\\output.pdf");
Related
I have an .spd file and I want to convert it to pdf file, I looked for libraries over web but couldn't find any.
Actually, my android app gives me spd and jpg file. I am able to convert from jpg to pdf but it takes a lot of time and I also used different libraries for that but got same time for that process. So I switched to convert spd to pdf file, but I am not able to locate any java based library for that.
It would be great if anyone could suggest any library or something.
Thanks
The extension of SPen's files is indeed .spd. I'm afraid that there is currently no official MIME type associated with .spd files.
You can find offical MIME types in the IANA's MIME Media Types register: http://www.iana.org/assignments/media-types
This might help you:
Go to http://developer.samsung.com/samsung-mobile-sdk/sdk Download
the SDK
Inside the binaries there are some programming guides as mentionned
in 1.3 at http://developer.samsung.com/samsung-mobile-sdk
Have a look to ProgrammingGuide_Pen.pdf
See quote like : The sample application saves the data created with
the Pen package in a file. The application supports the SPD format
for Pen data files and the +SPD data format (image file with added
SPD data) for general image files.
I am trying to make android application which should take ms word files i.e.(.doc/.docx) files as input and convert it into pdf as final output.
I searched for pdf conversion in android but the output i got was not proper. i tried with jWordConvert(Qoppa software library),it converts word to pdf in java very well but if we try in android it giving error,
conversion to dalvik format failed with error 1.
also i tried with apache poi library but again it is not showing proper output if my word files contains images or tables..also if we tried with apache tika with apache poi, again same results.
Itext is also there but its main use is to convert from images/html to pdf, but again output is different from outr expectation..
So my request is, Is there any api which should support android application for word to html/pdf/image conversion with proper output if my word file contains tyables, images etc.
also can i go for JNI, is there any anather way to do it.
please reply. thanx in advance.
Here is an app which does what you want to realize.
If there is an app already in app store, for me is very easy to know what that use and how is using...
I hope it helps for you a bit!
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.
I want to convert .mxd file into .pdf file. I have google under this topic but I ended with nothing. I want to know that can I convert .mxd to .pdf directly or do I need to convert using intermediate conversions?
any help would be appreciate.....
thank you.
Typically .mxd files are mapping files created with ESRI ArcGIS. ArcMap has a tool to export a specific section to a pdf.
If you must do this programmatically (not by using a manual tool) you can do this I believe by publishing the MXD as a map service and then using the JavaScript, etc. APIs to make the conversions.
well i found this
http://arcscripts.esri.com/details.asp?dbid=15139
I am searching on ways to make a small app using GWT for converting documents
from one format to other.
Mainly these formats .doc , .pdf , .odt , .rtf.. and maybe a couple
more.
Has anyone tried this before??
I came across the library JODConverter but it needs open office to be
already installed and i don't really know how many people have used it
with gwt in past.
Please give me some starting pointers, or if anyone has experience
with this kind of app, do share.
Thanks and regards,
Rohit
I was looking into implementing something like this a few month ago.
Since GWT compiles your code to JavaScript there is no way for you to do that on the client side, JavaScript can't access the file system.
So you would need to upload the file to the server first and do the conversion on the server side and send the converted file back.
I have never heard of JODConverter before, the the library I wanted to use was Apache POI . Unfortunately I can't tell you anything about it, because I haven't tried it yet.
It sounds like JOD Converter is precisely what you need since you're looking at multi format conversions from Java. You would install OpenOffice on your server and link it up with JOD Converter. When a document is uploaded, your application would call JOD Converter to perform the conversion and stream the converted document back to the caller. Alternatively you can put the file somewhere, and send a link (URL) back to the caller so they can fetch the document. You can also look at JOD Reports or Docmosis if you need to manipulate the documents.
GWT is mostly a client side toolkit. Are you trying to make a tool that does all the conversion on the client side, with no help from the server? In that case, you should be looking for JavaScript libraries that can read/convert all those formats. If you are planning to have the user upload their files to the server, then you can use whatever technology you want on the server, and just use GWT for the UI.