Hi
I am having this serious issue with exporting to PDF: the download dialog does not start, most of the time, at the first "click" to invoke export. I have to stop that transfer or close the tab that opens, then try again and then the download dialog will open within seconds. But not at the first try! Though, very occasionally, it works.
I have no idea if it generates an error because I see no error on the apache error_log, neither on screen with display_errors turned on at php.ini. I have debug level turned on on the logs.
Here's my code snippet for my 'export.php':
<?php
require_once "Genius.php";
$prefix = $_GET['prefix'];
$cityprov = $_GET['a']; //$_SESSION['cityprov'];
$compr = $_GET['b']; //$_SESSION['Comprehensive'];
$summa = $_GET['c']; //$_SESSION['vehicle_summary'];
$demog = $_GET['d']; //$_SESSION['demographics'];
$geogr = $_GET['e']; //$_SESSION['geography_summary'];
$edge = $_GET['f']; //$_SESSION['e'];
$magna = $_GET['g']; //$_SESSION['m'];
$gtx = $_GET['h']; //$_SESSION['g'];
$getstr = '&a='.$citypr.'&b='.$compr.'&c='.$summa.'&d='.$demog.'&e='.$geogr.'&f='.$edge.'&g='.$magna.'&h='.$gtx;
$report = new Genius(array(
"db_prefix"=>$prefix,
"cityprov"=>$cityprov,
"compr"=>$compr,
"summa"=>$summa,
"demog"=>$demog,
"geogr"=>$geogr,
"edge"=>$edge,
"magna"=>$magna,
"gtx"=>$gtx)
);
$report->run()
->export('GeniusPdf')
->pdf(array(
"format"=>"Letter",
"orientation"=>"portrait",
"margin"=>array(
"top"=>"0.5in",
"bottom"=>"0.5in",
"left"=>"0.5in",
"right"=>"0.5in"
)
//"zoom"=>2
))
->toBrowser("Genius-report.pdf");
This unfortunately has a very HIGH priority for my client who considers this a STOPPER. My licence is Pro, so I am using the export package that is bundled. Also, PhantomJS is installed with my server version (Linux).
If I am not able to provide a solution for this issue, my client will either drop the project entirely or I'll have to resort to make these reports export by using FPDF or something as horrible as that :( Please help.
Please let me know if you want me to send you all my code related to exporting, but provide an email to do so because there's some confencial info that I am not free to post here in the forum.
Thank you,
=Sergio