Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
Since GAE has severe restrictions like - "A Java application cannot use any classes used to write to the filesystem"...
Is there a good Java PDF library that can write the PDF to memory for streaming to the cloud?
You can use iText without limitations now. There is no need for a patch since version 5.2.0 anymore.
Have a look at the following post for an example: Generate PDF using GAE and iText
According to this thread on google groups (requires authentication), PDFjet can be used on GAE (it has been slightly modified to replace files by streams at a few places). As they say in the thread:
It's a quite low-level library but should be ok for simple tasks.
As of now, both iText and JasperReports are listed as incompatible on the "Will it play in App Engine" page due to the dependence on several classes that are not in the JRE class whitelist.
Update (2010/09/26): As mentioned by Guido in a comment (and I thank him for that), some people claim they have an iText patch to make it compatible with GAE. Worth the try if you want to play with iText.
Related
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 5 years ago.
Improve this question
As you maybe know, the Google Map API has changed few months ago and the way to implement it in a JPanel changed as well. I was looking for a solution all week and never found it.
I found some tests from google on github but it never show how to put it in an interface.
So does someone know how to put a Google Map (from the new Google Map API) in a JPanel ?
You can still embed a web browser such as the on in JavaFX and use the normal google maps example html+javascript and make javascript calls through that browser component. Though beware that the browser component in javafx has had severe issues with google maps in the past. Some versions have worked great, some not so much...
A high performance prepared java swing component that is a wrapper around chromium browser for google maps with pure java api:s is available for commercial and open source:
https://www.teamdev.com/jxmaps
Trying their demo it shows great performance (I've no affiliation).
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 3 years ago.
Improve this question
I am building a j2ee web application with a MySQL db.
I need to whip up some reports, and slice and dice the data in various ways.
Is it best to tackle each report requirement, write the code to serve up the data?
Or, is there a framework I should look into?
Take a look at JasperReports (http://www.jasperforge.org). You can integrate it into your Java app or use it as a stand-alone reporting application along the same lines as Crystal Reports.
It's hard to give a precise answer as you didn't give many details so I'd just suggest to have a look at JasperReport (and iReport), Eclipse Birt or Pentaho Report.
This thread will give you some information on the differences between them. Or Google a bit.
recommend ireport, a sub-project in JasperReports
http://jasperforge.org/plugins/project/project_home.php?projectname=ireport
You might also want to look at Docmosis since you can do a lot of the work in the templates which are just doc or odf documents. You can't do everything in Docmosis but typical report stuff can be done faster little code.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 8 years ago.
Improve this question
There are plenty of Java wiki engines. I'm currently looking for good lightweight wiki , something like the community wiki on Stack Overflow, that can be easily integrated into excising applications.
I personally use JSP Wiki. It's lightweight, easy to use, and obviously uses Java. You just drop it in an application server, make some small config changes and you're golden! I set this up as my company's Wiki and it runs just great.
I really like Mylyn WikiText: besides offering UI elements like an Eclipse editor, it offers API and Ant tasks for working with various wiki formats (Textile, MediaWiki, Confluence, Trac) and exporting to HTML, PDF, and others. It's available in Eclipse Galileo and as a standalone library (see bottom of the page).
Consider FitNesse if this is in any way programming related. It allows you to write tests in the Wiki and have the testing framework update the Wikipages with the results. This allows others than programmers to collaborate on this.
http://fitnesse.org/FitNesse.UserGuide.OneMinuteDescription
check out GWiki, http://labs.micromata.de/display/gwiki/Home it's great.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
How to convert to PDF from my JSP/HTML file?.
I want to convert a particular part of my webpage to a PDF file. Is it possible?
Yes. Take a good look at booth Apache FOP and iText. No matter what you use, you'll probably have to do a little fiddling.
I used HTMLDoc a couple of years ago and had pretty good luck with it.
try wkhtmltopdf. It is a command line utility that can be provided an html file or web address and a save location for the pdf. Very easy to use and utilizes the same rendering engine as safari. Works MUCH better than many of the other parsers that I have used (that don't always support CSS and other advanced layout features.
Take a look at html2ps (Perl) or html2ps (PHP). However, none of the two is implemented in Java.
You might also want to read this article.
flying saucer library is the best one to use. It works on top of itext and makes the task of conversion very easy.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
I would like to read the text and binary attachments in a saved Outlook message (.msg file) from a Java application, without resorting to native code (JNI, Java Native Interface).
Apache POI-HSMF seems to be in the right direction, but it's in very early stages of development...
msgparser is a small open source Java library that parses Outlook .msg files and provides their content using Java objects. msgparser uses the Apache POI - POIFS library to parse the message files which use the OLE 2 Compound Document format.
You could use Apache POIFS, which
seems to be a little more mature,
but that would appear to duplicate the efforts of POI-HSMF.
You could use POI-HSMF and contribute changes to get the
features you need working. That's
often how FOSS projects like that expand.
You
could use com4j, j-Interop, or some
other COM-level interop feature and
interact directly with the COM
interfaces that provide access to
the structured document. That would
be much easier than trying to hit it
directly through JNI.
Have you tried to use Jython with the Python win32 extensions (http://www.jython.org/Project/ + http://python.net/crew/mhammond/win32/)?
If this is for a "personal" or "internal" project Jython with Python may be a very good choice. If you are building a "shrink wrapped" software package this may not be the best option.
Apache POI-HSMF.
You can start from the example given in below link.
http://svn.apache.org/viewvc/poi/trunk/src/scratchpad/examples/src/org/apache/poi/hsmf/examples/Msg2txt.java?revision=821500&view=markup&pathrev=821500
Further read library docs.