Wednesday, 15 September 2010

php - wkhtmltopdf loading multiple pages fails -



php - wkhtmltopdf loading multiple pages fails -

i using wkhtmltopdf , php library http://mikehaertl.github.com/phpwkhtmltopdf/ generate single pdf many pages. unusual thing when have 3 pages loads instantaneously. if load 4 pages acts though it's in infinite loop. loading random orders database it's not repeating orders avoid beingness order crashing it. loop through each order , phone call addpage phone call send()

foreach($orders $order_id) { $order = $this->orders_model->get_order($order_id); if(!empty($order)) { $this->wkhtmltopdf->addpage($this->template->build('invoice', array( 'order' => $order ), true)); } } $this->wkhtmltopdf->send();

i have tried removing memory limits, have tried setting timeout 0

set_time_limit(0); ini_set('memory_limit','-1');

that didn't alter anything, same result. looked in apache logs, php error logs , application's logs , cannot come conclusion why stop working 4 orders.

php wkhtmltopdf

No comments:

Post a Comment