public generateFdfFile ( string $name ) : |
||
$name | string | name of the FDF file |
Результат | the pdf instance for method chaining |
public function generateFdfFile($name)
{
$this->constrainSingleFile();
$this->getCommand()->setOperation('generate_fdf');
$this->_output = $name;
return $this->execute();
}
public function testCanCreateFdfFileFromPdf() { $form = $this->getFilledForm(); $file = __DIR__ . '/test.fdf'; $pdf = new Pdf($form); $this->assertTrue($pdf->generateFdfFile($file)); @unlink($file); }