Package org.ametys.plugins.flipbook
Interface Document2ImagesConvertorPolicy
-
- All Known Implementing Classes:
CommandLineConvertor
,PdfboxConvertor
public interface Document2ImagesConvertorPolicy
Converts a document file to PNG images, one image per page. The document images file name must begin with "page".
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
convert(File documentFile, File folder)
Convert the given document file to PNG images, one image per page.List<String>
getSupportedMimeTypes()
Get the list of mime types the convertor can convert
-
-
-
Method Detail
-
getSupportedMimeTypes
List<String> getSupportedMimeTypes()
Get the list of mime types the convertor can convert- Returns:
- The list of supported mime-types
-
convert
void convert(File documentFile, File folder) throws IOException, FlipbookException
Convert the given document file to PNG images, one image per page.- Parameters:
documentFile
- the document file to convert.folder
- the destination folder.- Throws:
IOException
- if an I/O error occurs.FlipbookException
- if a document error occurs.
-
-