/** * Test for PDF::getPDFData * * @group large * @return void */ public function testDocument() { $pdf = new PDF(); $pdf->SetTitle('Title'); $pdf->Open(); $pdf->SetAutoPageBreak('auto'); $pdf->Addpage(); $pdf->SetFont(PMA_PDF_FONT, 'B', 14); $pdf->Cell(0, 6, 'Cell', 'B', 1, 'C'); $pdf->Ln(); $pdf->Addpage(); $pdf->Bookmark('Bookmark'); $pdf->SetMargins(0, 0); $pdf->SetDrawColor(200, 200, 200); $pdf->line(0, 0, 100, 100); $this->assertContains('PDF', $pdf->getPDFData()); }
/** * This function must be named "Footer" to work with the TCPDF library * * @return void * * @see PDF::Footer() */ public function Footer() { if ($this->_withDoc) { parent::Footer(); } }