I'm using TCPDF
to generating PDF
file. I want to remove the bottom line and for that I'm using $pdf->SetPrintFooter(false);
it is working but after bottom line it is showing page number like this 1/1
, now I only want to remove the bottom line except the page number. Is there any alternative for this in TCPDF
.
Asked
Active
Viewed 4,055 times
3

user3833682
- 263
- 5
- 20
-
You can try it by extending, as explained here. http://stackoverflow.com/questions/2824423/tcpdf-edit-footer. – tnchalise Apr 08 '15 at 11:35
-
I check that already but didn't work for me. – user3833682 Apr 08 '15 at 12:54
-
Is anyone who can help me for this please. – user3833682 Apr 08 '15 at 15:26
-
You want do something like that -> http://www.tcpdf.org/examples/example_003.pdf ? – Lynxi Apr 10 '15 at 07:11
2 Answers
3
After creating the object, you need to invoke these commands:
$pdf->setPrintHeader(false);
$pdf->setPrintFooter(false);

1000Nettles
- 2,314
- 3
- 22
- 31

Flávio da Silva
- 151
- 1
- 7
0
So if I understand, you want that or something like that -> http://www.tcpdf.org/examples/example_003.pdf
The code is here -> http://www.tcpdf.org/examples/example_003.phps
I isolated the code you need
// Page footer
public function Footer() {
// Position at 15 mm from bottom
$this->SetY(-15);
// Set font
$this->SetFont('helvetica', 'I', 8);
// Page number
$this->Cell(0, 10, 'Page '.$this->getAliasNumPage().'/'.$this->getAliasNbPages(), 0, false, 'C', 0, '', 0, false, 'T', 'M');
}
If you search something about TCPDF search here before asking

Lynxi
- 817
- 13
- 39