class Convert

Documentation missing

Methods

__construct()

No description

string|null
from_doc(string $pathToFile)

Try converting old .doc files to string

string
from_docx(string $filename)

Return Text only from Word 2007 Document

from_file($filename, $ext = false, $return_mode = 'html')

No description

from_html($filename)

No description

from_pdf($filename)

No description

from_ppt($filename)

No description

string
from_pptx(string $filename)

Return Text only from Powerpoint 2007 Document

from_stream($stream, $ext)

No description

from_txt($filename)

No description

string|null
from_xls(string $pathToFile)

Try converting old 97 Excel to string e.g. for search index

string
from_xlsx(string $filename)

Return Text only from Excel 2007 Document

string
html_to_latex(mixed $html)

Converts basic HTML tags to the LATEX syntax

pdf_to_image($pdf_filename, $image_filename, bool $width = false, bool $height = false, int $page = '*')

No description

stream_to_html($stream, $ext)

No description

stream_to_text($filename, $ext)

No description

to_html($filename, $ext = false)

No description

to_text($filename, $ext = false)

No description

Details

at line 42
__construct()

No description

at line 227
string|null from_doc(string $pathToFile)

Try converting old .doc files to string

Parameters

string $pathToFile

Path to file

Return Value

string|null

at line 253
string from_docx(string $filename)

Return Text only from Word 2007 Document

Parameters

string $filename

path to filename

Return Value

string Text

at line 139
from_file($filename, $ext = false, $return_mode = 'html')

No description

Parameters

$filename
$ext
$return_mode

at line 243
from_html($filename)

No description

Parameters

$filename

at line 163
from_pdf($filename)

No description

Parameters

$filename

at line 180
from_ppt($filename)

No description

Parameters

$filename

at line 274
string from_pptx(string $filename)

Return Text only from Powerpoint 2007 Document

Parameters

string $filename

path to filename

Return Value

string Text

at line 155
from_stream($stream, $ext)

No description

Parameters

$stream
$ext

at line 175
from_txt($filename)

No description

Parameters

$filename

at line 201
string|null from_xls(string $pathToFile)

Try converting old 97 Excel to string e.g. for search index

Parameters

string $pathToFile

Path to file

Return Value

string|null

at line 263
string from_xlsx(string $filename)

Return Text only from Excel 2007 Document

Parameters

string $filename

path to filename

Return Value

string Text

at line 134
string html_to_latex(mixed $html)

Converts basic HTML tags to the LATEX syntax

Parameters

mixed $html

Return Value

string

at line 75
pdf_to_image($pdf_filename, $image_filename, bool $width = false, bool $height = false, int $page = '*')

No description

Parameters

$pdf_filename
$image_filename
bool $width
bool $height
int $page

Starting with 0

todo: convert multiple pages in a single command

at line 61
stream_to_html($stream, $ext)

No description

Parameters

$stream
$ext

at line 56
stream_to_text($filename, $ext)

No description

Parameters

$filename
$ext

at line 51
to_html($filename, $ext = false)

No description

Parameters

$filename
$ext

at line 46
to_text($filename, $ext = false)

No description

Parameters

$filename
$ext