Nextcloud PHP API (master)

IConversionManager

Tags
since
31.0.0

Table of Contents

Methods

convert()  : string
Convert a file to a given MIME type
getProviders()  : array<int, ConversionMimeProvider>
Gets all supported MIME type conversions
hasProviders()  : bool
Determines whether or not conversion providers are available

Methods

convert()

Convert a file to a given MIME type

public convert(File $file, string $targetMimeType[, string|null $destination = null ]) : string
Parameters
$file : File

The file to be converted

$targetMimeType : string

The MIME type to convert the file to

$destination : string|null = null

The destination to save the converted file

Tags
since
31.0.0
Return values
string

Path to the converted file

hasProviders()

Determines whether or not conversion providers are available

public hasProviders() : bool
Tags
since
31.0.0
Return values
bool

        
On this page

Search results