public function output($template, $data, $format = self::FORMAT_PDF, $name = null, array $params = [])
    {
        return $this->request(self::REQUEST_POST, 'templates/'.$template.'/output', array_merge([
            'data' => $data,
            'format' => $format,
            'name' => $name
        ], $params));
    }
public function output($template, $data, $format = self::FORMAT_PDF, $name = null, array $params = [])
    {
        return $this->request(self::REQUEST_POST, 'templates/'.$template.'/output', array_merge([
            'data' => $data,
            'format' => $format,
            'name' => $name
        ], $params));
    }
public function output ( $ template , $ data , $ format = self :: FORMAT_PDF , $ name = null , array $ params = [ ] ) { return $ this -> request ( self :: REQUEST_POST , 'templates/' . $ template . '/output' , array_merge ( [ 'data' => $ data , 'format' => $ format , 'name' => $ name ] , $ params ) ) ; }
Returns document as base64 encoded string for given template and data

@param integer $template
@param string|array|\stdClass $data
@param string $format
@param string $name
@param array $params

@return \stdClass
@throws \ActualReports\PDFGeneratorAPI\Exception
Returns document as base64 encoded string for given template and data