public function setOutputFormat($outputFormat)
    {
        if (! $this->isValidOutputFormat($outputFormat)) {
            throw new InvalidFormat("Format {$outputFormat} is not supported");
        }

        $this->outputFormat = $outputFormat;

        return $this;
    }
public function setOutputFormat($outputFormat)
    {
        if (! $this->isValidOutputFormat($outputFormat)) {
            throw new InvalidFormat("Format {$outputFormat} is not supported");
        }

        $this->outputFormat = $outputFormat;

        return $this;
    }
public function setOutputFormat ( $ outputFormat ) { if ( ! $ this -> isValidOutputFormat ( $ outputFormat ) ) { throw new InvalidFormat ( "Format {$outputFormat} is not supported" ) ; } $ this -> outputFormat = $ outputFormat ; return $ this ; }
Set the output format.

@param string $outputFormat

@return $this

@throws \Spatie\PdfToImage\Exceptions\InvalidFormat
Set the output format .