public class CommandLineConvertor extends AbstractLogEnabled implements Document2ImagesConvertor
ROLE
Constructor and Description |
---|
CommandLineConvertor() |
Modifier and Type | Method and Description |
---|---|
void |
convert(File pdfFile,
File folder)
Convert the given document file to PNG images, one image per page.
|
protected String[] |
getCommandLine(String filePath)
Get the command line to generate PNG images from the PDF file.
|
List<String> |
getSupportedMimeTypes()
Get the list of mime types the convertor can convert
|
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
public CommandLineConvertor()
public void convert(File pdfFile, File folder) throws IOException, FlipbookException
Document2ImagesConvertor
convert
in interface Document2ImagesConvertor
pdfFile
- the document file to convert.folder
- the destination folder.IOException
- if an I/O error occurs.FlipbookException
- if a document error occurs.protected String[] getCommandLine(String filePath)
filePath
- the PDF file path.public List<String> getSupportedMimeTypes()
Document2ImagesConvertor
getSupportedMimeTypes
in interface Document2ImagesConvertor