class FileConvert
Converter between various file types
For all features to work, the following programs need to be installed:
- convert (e.g. from the graphicsmagick-imagemagick-compat Debian package)
- exiftool (e.g. from the libimage-exiftool-perl Debian package)
- libreoffice (e.g. from the libreoffice-common Debian package) Functions
| Name | Visibility | Description |
| getPageCount | public (static) | Use 'exiftool' to determine the number of pages in a file |
| imagemagick | public (static) | Convert file using ImageMagick |
| installed | public (static) | Checks to see that a conversion program is installed |
| libreoffice | public (static) | Convert file using LibreOffice |
| validateExtension | private (static) | Validates that an output file extension is of a valid format |
int FileConvert::getPageCount ( string $filename );
Use 'exiftool' to determine the number of pages in a file string FileConvert::imagemagick ( string $in_file , string $out_ext [, int $page_index [, int $density ]] );
Convert file using ImageMagick bool FileConvert::installed ( string $program );
Checks to see that a conversion program is installed string FileConvert::libreoffice ( string $in_file , string $out_ext );
Convert file using LibreOffice void FileConvert::validateExtension ( string $ext );
Validates that an output file extension is of a valid format
|