How can i solve with transaction. How can i use the transaction in this situation.
Hi Simon, After commenting below code it is working fine. if ($plendiff == 0) { // remove last blank page $this->deletePage($this->numpages); } But i have one more thing to ask you that in my company we are using this tcpdf liabrary for other PDF generation too so if i comment the above code will it affect to other PDFs. Please let me know. And Thank you do much for your help.
Hi Simon, Thank you for quick response. the Correct footer is attahced please see it.
Hi Simon, Yes, You are right the new page is empty and i just want to print the footer in the next page...How can i resolve this problem. Please help.
Can someone help me?
Hi, I'm developing a report that has a different footer on it's last page. Following Nicola's recommended approach I've overriden the Close() function on my custom TCPDF subclass like so: public function Close() { $this->last_page_flag = true; parent::Close(); } And then on the Footer() function I do something like: function Footer(){ if($this->last_page_flag){ $footer_html = '...'; //HTML for the footer on the last page } else{ $footer_html = '...'; //HTML for the rest of the pages } $this->setY(-$this->_footerMargin);...
Hi, I'm developing a report that has a different footer on it's last page. Following Nicola's recommended approach I've overriden the Close() function on my custom TCPDF subclass like so: public function Close() { $this->last_page_flag = true; parent::Close(); } And then on the Footer() function I do something like: function Footer(){ if($this->last_page_flag){ $footer_html = '...'; //HTML for the footer on the last page } else{ $footer_html = '...'; //HTML for the rest of the pages } $this->setY(-$this->_footerMargin);...
Hi, I'm developing a report that has a different footer on it's last page. Following Nicola's recommended approach I've overriden the Close() function on my custom TCPDF subclass like so: public function Close() { $this->last_page_flag = true; parent::Close(); } And then on the Footer() function I do something like: function Footer(){ if($this->last_page_flag){ $footer_html = '...'; //HTML for the footer on the last page } else{ $footer_html = '...'; //HTML for the rest of the pages } $this->setY(-$this->_footerMargin);...