From dbf00ce00f33eda1ae229d272a12590959086584 Mon Sep 17 00:00:00 2001 From: Rahul Jain Date: Wed, 19 Oct 2016 23:02:01 +0530 Subject: [PATCH] Created Test for compiling, processing and listing params --- examples/example.php | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 examples/example.php diff --git a/examples/example.php b/examples/example.php new file mode 100644 index 0000000..af8da5f --- /dev/null +++ b/examples/example.php @@ -0,0 +1,27 @@ +compile($jrxmlFile)->execute(); + +// processing jasper file into pdf and rtf +$jasper->process( + $jasperFile, + $outputPdfRtf, + array("pdf", "rtf") +)->execute(); + +// Listing Parameters of jasper file +$jasperParameters = $jasper->list_parameters($jrxmlParamsFile)->execute(); +print "

Listing Parameters of jasper file

\n"; +foreach($jasperParameters as $parameter_description) { + print "
" . $parameter_description . "
\n"; +} \ No newline at end of file