PHP-SwfTools API
Class

SwfTools\Processor\FlashFile

class FlashFile extends File

Methods

__construct(Configuration $configuration = null, Logger $logger = null)

Build the File processor given the configuration

from File
__destruct()

open($pathfile)

from File
close()

from File
Boolean render(string $outputFile, Boolean $legacy_rendering = false)

Render the flash to PNG file

type listEmbeddedObjects(Boolean $useCache = false)

List all embedded object of the current flash file

string extractEmbedded(integer $id, string $outputFile)

Extract the specified Embedded file

extractFirstImage(string $outputFile)

Extract the first embedded image found

Details

in File at line 33
public __construct(Configuration $configuration = null, Logger $logger = null)

Build the File processor given the configuration

Parameters

Configuration $configuration
Logger $logger

at line 24
public __destruct()

in File at line 52
public open($pathfile)

Parameters

$pathfile

in File at line 63
public close()

at line 38
public Boolean render(string $outputFile, Boolean $legacy_rendering = false)

Render the flash to PNG file

Parameters

string $outputFile
Boolean $legacy_rendering

Return Value

Boolean

Exceptions

InvalidArgumentException

at line 70
public type listEmbeddedObjects(Boolean $useCache = false)

List all embedded object of the current flash file

Parameters

Boolean $useCache

Return Value

type

Exceptions

RuntimeException

at line 132
public string extractEmbedded(integer $id, string $outputFile)

Extract the specified Embedded file

Parameters

integer $id
string $outputFile

Return Value

string

Exceptions

RuntimeException

at line 169
public extractFirstImage(string $outputFile)

Extract the first embedded image found

Parameters

string $outputFile

Exceptions

InvalidArgumentException
RuntimeException