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, setupLoggerpublic CommandLineConvertor()
public void convert(File pdfFile, File folder) throws IOException, FlipbookException
Document2ImagesConvertorconvert in interface Document2ImagesConvertorpdfFile - 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()
Document2ImagesConvertorgetSupportedMimeTypes in interface Document2ImagesConvertor