class FlashFile extends File (View source)

Properties

protected $container from  File

Methods

__construct(DriverContainer $container)

Build the File processor given the configuration

from  File
static string
changePathnameExtension(string $pathname, string $extension)

Change the extension of a pathname

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

Render the flash to PNG file

type
listEmbeddedObjects(string $inputFile)

List all embedded object of the current flash file

string
extractEmbedded(int $id, string $inputFile, string $outputFile)

Extract the specified Embedded file

extractFirstImage(string $inputFile, string $outputFile)

Extract the first embedded image found

Details

__construct(DriverContainer $container)

Build the File processor given the configuration

Parameters

DriverContainer $container

static protected string changePathnameExtension(string $pathname, string $extension)

Change the extension of a pathname

Parameters

string $pathname
string $extension

Return Value

string

bool render(string $inputFile, string $outputFile, bool $legacy_rendering = false)

Render the flash to PNG file

Parameters

string $inputFile
string $outputFile
bool $legacy_rendering

Return Value

bool

Exceptions

InvalidArgumentException

type listEmbeddedObjects(string $inputFile)

List all embedded object of the current flash file

Parameters

string $inputFile

Return Value

type

Exceptions

RuntimeException

string extractEmbedded(int $id, string $inputFile, string $outputFile)

Extract the specified Embedded file

Parameters

int $id
string $inputFile
string $outputFile

Return Value

string

Exceptions

RuntimeException

extractFirstImage(string $inputFile, string $outputFile)

Extract the first embedded image found

Parameters

string $inputFile
string $outputFile

Exceptions

InvalidArgumentException
RuntimeException