Service - deal with SoapClient - create instance of convertor class - do the actual conversion

 Methods

convert2Image

convert2Image(string $file, string $ext, string $imageType, string $compression, integer $height, integer $width) : array
access public

Parameters

$file

string

Base64 encoded file content or url

$ext

string

Current file extension

$imageType

string

Output image extension (jpg,png,bmp)

$compression

string

Compression format (zip,gz)

$height

integer

Output image height

$width

integer

Output image width

Returns

arrayOutput

convert2Pdf

convert2Pdf(string $file, string $ext, string $compression) : string
access public

Parameters

$file

string

Base64 encoded file content or url

$ext

string

Current file extension

$compression

string

Compression format (zip,gz)

Returns

stringOutput

create an instance of Soap Server register functions for web service

create() : object
access public

Returns

objectValue.

updateWsdl - update WSDL based on url of this file

updateWsdl() : boolean
access private

Returns

booleanValue.

validation - validate paramters send to web service

validation(string $ext, string $compression, string $imageType, string $height, string $width) : mixed
access private

Parameters

$ext

string

file extension

$compression

string

compression type

$imageType

string

image type

$height

string

image height

$width

string

image width

Returns

mixed(boolean or exception) value