Is it possible to create a pdf from Jasper connector without connecting to a database?

1
0
-1

Hi all,

i would like to know if i can use jasper connector to create a pdf document without connection database. It is not mandatory to complete the connection information in the connector. But when i try the connector without filling database information, I get an error about it ("db Driver has not been specified").

Otherwise, do you know a simple solution (connector or a piece of Grovvy code) that enables to create a pdf document? I found nothing really conclusive in the forum.

thanks

jean-marie

2 answers

1
0
-1

thanks Sean !

jean-marie

1
0
-1

I was going to ask, why use Jasper if not getting the data from a database, but then you ask for other solutions as well.

There are many ways to do this by the looks of things...just depends on what you want to do, see any/all of the following:

http://stackoverflow.com/questions/7355025/create-pdf-with-java http://stackoverflow.com/questions/6118635/what-is-the-best-pdf-open-source-library-for-java https://pdfbox.apache.org/ http://itextpdf.com/examples/iia.php?id=12

and finally this is a very good example of doing exactly what you are looking for,

http://www.vogella.com/tutorials/JavaPDF/article.html

You could use a simple Script Connector to do this

Best regards Seán

Comments

Submitted by Sean McP on Wed, 03/04/2015 - 10:15

Actually thanks for the question, though I hadn't thought of it before, I now see wonderful opportunities.

regards

Submitted by romualdo.s.rs on Thu, 08/03/2017 - 14:39

Hello Sean

Could you give me some help on how to configure the jasper connector in BonitaSoft? I created my * .jsxml file in jasper studio, I tested it there and it worked, but when I import to BonitaSoft it does not generate anything, I even took the example available here

But when I try to just put my * .jrxml, the generated PDF it exits blank.

If you have any tips I thank you very much

Romualdo Santos

Notifications