# Pdf2swf

class Pdf2swf extends Binary (View source)

The Pdf2Swf adapter

## Constants

CONVERT_POLY2BITMAP |
CONVERT_BITMAP |
OPTION_LINKS_DISABLE |
OPTION_LINKS_OPENNEWWINDOW |
OPTION_ZLIB_ENABLE |
OPTION_ZLIB_DISABLE |
OPTION_ENABLE_SIMPLEVIEWER |
OPTION_DISABLE_SIMPLEVIEWER |

## Methods

string|null
getVersion()

Try to get the version of the binary. If the detection fails, return null

from Binary
getName()

{@inheritdoc}

Pdf2swf
toSwf(string $pathfile, string $outputFile, array $options = array(), string $convertType = self::CONVERT_POLY2BITMAP, int $resolution = 72, int $pageRange = '1-', int $frameRate = 15, int $jpegquality = 75, int $timelimit = null)

Transcode a PDF to SWF

static Pdf2swf
create(array|ConfigurationInterface $conf = array(), LoggerInterface $logger = null)

Creates the Pdf2swf binary driver

## Details

###
in Binary at line 28
`string|null getVersion()`

Try to get the version of the binary. If the detection fails, return null

#### Return Value

string|null |

###
at line 38
`getName()`

{@inheritdoc}

###
at line 61
`Pdf2swf toSwf(string $pathfile, string $outputFile, array $options = array(), string $convertType = self::CONVERT_POLY2BITMAP, int $resolution = 72, int $pageRange = '1-', int $frameRate = 15, int $jpegquality = 75, int $timelimit = null)`

Transcode a PDF to SWF

#### Parameters

string | $pathfile |
string | $outputFile |
array | $options |
string | $convertType |
int | $resolution |
int | $pageRange |
int | $frameRate |
int | $jpegquality |
int | $timelimit | The time limit for the process (deprecated)

#### Return Value

Pdf2swf |

#### Exceptions

InvalidArgumentException |

###
at line 153
`static Pdf2swf create(array|ConfigurationInterface $conf = array(), LoggerInterface $logger = null)`

Creates the Pdf2swf binary driver

#### Parameters

array|ConfigurationInterface | $conf |
LoggerInterface | $logger |

#### Return Value

Pdf2swf |

#### Exceptions

ExecutableNotFound | In case the executable is not found