public dropXfa ( ) : |
||
return | the pdf instance for method chaining |
public function dropXfa()
{
$this->getCommand()->addOption('drop_xfa');
return $this;
}
public function testCanDropXfa() { $document = $this->getDocument1(); $file = $this->getOutFile(); $pdf = new Pdf($document); $this->assertInstanceOf('mikehaertl\\pdftk\\Pdf', $pdf->dropXfa()); $this->assertTrue($pdf->saveAs($file)); $this->assertFileExists($file); $tmpFile = (string) $pdf->getTmpFile(); $this->assertEquals("pdftk A='{$document}' output '{$tmpFile}' drop_xfa", (string) $pdf->getCommand()); }