phpjasper-laravel icon indicating copy to clipboard operation
phpjasper-laravel copied to clipboard

Export Parameters

Open ahmedhakem opened this issue 5 years ago • 2 comments

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

ahmedhakem avatar Dec 24 '19 06:12 ahmedhakem

Any help on this issue please?

ahmedhakem avatar Dec 25 '19 06:12 ahmedhakem

Any help?

ahmedhakem avatar Jan 07 '20 12:01 ahmedhakem