Skip to content
This repository has been archived by the owner on Oct 25, 2022. It is now read-only.

Commit

Permalink
Small typos
Browse files Browse the repository at this point in the history
  • Loading branch information
cossou committed Oct 13, 2015
1 parent ca33874 commit 40e22f7
Showing 1 changed file with 16 additions and 14 deletions.
30 changes: 16 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,14 @@ This commando will compile the `hello_world.jrxml` source file to a `hello_world

Now lets process the report that we compile before:

JasperPHP::process(
base_path() . '/vendor/cossou/jasperphp/examples/hello_world.jasper',
false,
array("pdf", "rtf"),
array("php_version" => phpversion())
)->execute();
```php
JasperPHP::process(
base_path() . '/vendor/cossou/jasperphp/examples/hello_world.jasper',
false,
array("pdf", "rtf"),
array("php_version" => phpversion())
)->execute();
```

Now check the examples folder! :) Great right? You now have 2 files, `hello_world.pdf` and `hello_world.rtf`.

Expand All @@ -68,13 +70,14 @@ Check the *API* of the `compile` and `process` functions in the file `src/Jaspe

Querying the jasper file to examine parameters available in the given jasper report file:

$output = JasperPHP::list_parameters(
base_path() . '/vendor/cossou/jasperphp/examples/hello_world.jasper'
)->execute();
```php
$output = JasperPHP::list_parameters(
base_path() . '/vendor/cossou/jasperphp/examples/hello_world.jasper'
)->execute();

foreach($output as $parameter_description) {
echo $parameter_description;
}
foreach($output as $parameter_description)
echo $parameter_description;
```

###Advanced example

Expand Down Expand Up @@ -133,7 +136,7 @@ Now in your `composer.json` file add:
```javascript
{
"require": {
"cossou/jasperphp": "dev-master",
"cossou/jasperphp": "dev-master",
}
}
```
Expand Down Expand Up @@ -197,7 +200,6 @@ Depends on the complexity, amount of data and the resources of your machine (let

I have a report that generates a *Invoice* with a DB connection, images and multiple pages and it takes about **3/4 seconds** to process. I suggest that you use a worker to generate the reports in the background.


##Thanks

Thanks to [Cenote GmbH](http://www.cenote.de/) for the [JasperStarter](http://jasperstarter.sourceforge.net/) tool.
Expand Down

0 comments on commit 40e22f7

Please sign in to comment.