src/Pdf/CakePdf.php
public function write($destination, $create = true, $html = null)
    {
        $output = $this->output($html);
        $File = new File($destination, $create);

        return $File->write($output) && $File->close();
    }
public function write($destination, $create = true, $html = null)
    {
        $output = $this->output($html);
        $File = new File($destination, $create);

        return $File->write($output) && $File->close();
    }
public function write ( $ destination , $ create = true , $ html = null ) { $ output = $ this -> output ( $ html ) ; $ File = new File ( $ destination , $ create ) ; return $ File -> write ( $ output ) && $ File -> close ( ) ; }
Writes output to file

@param string $destination Absolute file path to write to
@param bool $create Create file if it does not exist (if true)
@param string $html Html to write
@return bool
Writes output to file