|
|
Re: Php Java Bridge [message #762872 is a reply to message #762645] |
Thu, 08 December 2011 18:40 |
|
Karvesh,
Can you post the code (php) that you are using to export to pdf?
Jason
On 12/8/2011 7:47 AM, karvesh wrote:
> Dear Jason
>
> I noticed that the export to HTML works fine for around 100 reports..
> Its when i call the export to pdf intensively that the out of memory
> error seems to occur...
>
> Karvesh
|
|
|
|
Re: Php Java Bridge [message #763313 is a reply to message #763037] |
Fri, 09 December 2011 14:50 |
|
Karvesh,
I did no see anything wrong with the code. If you change the pdf php to
first do a run task and then a render task do you get the error?
Jason
On 12/8/2011 9:52 PM, karvesh wrote:
> Dear Jason
>
> I noted that this could happen also in the HTML render file..
>
> Please find the html and pdf render files enclosed
>
> clientReceipt.php for the html rendering
> clientReceiptPDF.php for the pdf rendering
>
> I was wondering if i increased the -XX:MaxPermSize=256M to -XX:MaxPermSize=512M..
> It may buy me some time...
>
> Thanks a lot :)
>
> Karvesh
|
|
|
|
Re: Php Java Bridge [message #764654 is a reply to message #763595] |
Mon, 12 December 2011 15:40 |
|
Close, but the second task should be a render task.
try{
$document = $birtReportEngine->openReportDocument($here .
"/reportDocuments/" . session_id() . "/GRN.rptdocument");
$task = $birtReportEngine->createRenderTask($document);
..
..
..
$task->render();
$document->close();
$task->close();
Jason
On 12/9/2011 10:54 PM, karvesh wrote:
> Dear Jason,
>
> you mean i add the red code within the pdf export one:
>
> $report =
> $birtReportEngine->openReportDesign("${here}/ReportDesigns/GRN.rptdesign");
>
> $task = $birtReportEngine->createRunTask($report);
> $task->run($here . "/reportDocuments/" . session_id() .
> "/GRN.rptdocument");
> $task->close();
>
> $task = $birtReportEngine->createRunAndRenderTask($report);
>
> $taskOptions = new
> java("org.eclipse.birt.report.engine.api.PDFRenderOption");
> $outputStream = new java("java.io.ByteArrayOutputStream");
> $taskOptions->setOutputStream($outputStream);
> $taskOptions->setOption("pdfRenderOption.pageOverflow",
> "pdfRenderOption.fitToPage");
> $taskOptions->setOutputFormat("pdf");
>
> $task->setRenderOption( $taskOptions );
> $task->run();
> $task->close();
>
>
> Karvesh
|
|
|
Powered by
FUDForum. Page generated in 0.03695 seconds