phpjasper-laravel
phpjasper-laravel copied to clipboard
Export Parameters
I'm trying to compile jasper report from my php code to (PDF, HTMl) format,
*in pdf format the arabic font i just installed in jasper studio working fine in jasper studio but in php the font not showing i think it required some export parameters.
*in HTML format i embed the image in the exported html and showing like base64 image in the exported HTML file it works fine when i export from jasper studio but in php code the image generated in a separated folder i think it expected some export parameters. And here is my code. How can i pass export parameters with php code.
$input =base_path().'/vendor/geekcom/phpjasper-laravel/examples/kemo/assign.jasper';
$output =base_path().'/vendor/geekcom/phpjasper-laravel/examples';
$options = [
'format' => ['html', 'pdf'],
'params' => [
'requestID' => 25
],
'db_connection' => [
'driver' => 'mysql',
'username' => env('DB_USERNAME'),
'password' => env('DB_PASSWORD'),
'host' => env('DB_HOST'),
'database' => env('DB_DATABASE'),
'port' => '3306'
]
];
$jasper = new PHPJasper();
$jasper->process(
$input,
$output,
$options
)->execute();
return response()->file($output.'/assign.html');
Please help me on this issue. Thanks is advance
Any help on this issue please?
Any help?