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