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));
    }