getData() public méthode

public getData ( boolean $utf8 = true ) : string | boolean
$utf8 boolean whether to dump the data UTF-8 encoded. Default is true.
Résultat string | boolean meta data about the PDF or false on failure
Exemple #1
0
 public function testCanGetData()
 {
     $document = $this->getDocument1();
     $pdf = new Pdf($document);
     $data = $pdf->getData();
     $this->assertInternalType('string', $data);
     $this->assertContains('NumberOfPages: 5', $data);
 }
Exemple #2
0
 public function testCanGetData()
 {
     $document = $this->getDocument1();
     $pdf = new Pdf($document);
     $data = $pdf->getData();
     $this->assertInternalType('string', $data);
     $this->assertEquals($this->document1Data, $data);
 }