public class PdfToImageService extends Object
| Modifier and Type | Field and Description | 
|---|---|
protected String | 
gsExe  | 
protected File | 
gsProcessLogDir  | 
protected int | 
timeoutInMs  | 
| Constructor and Description | 
|---|
PdfToImageService(String gsExe,
                 File gsProcessLogDir,
                 int timeoutInMs)  | 
| Modifier and Type | Method and Description | 
|---|---|
PdfImagesStorage | 
convertAndGetPdfAsJpeg(File pdfFile,
                      File workingDir)  | 
void | 
convertPdfToJpeg(File pdfFile,
                File workingDir)  | 
int | 
getTimeoutInMs()  | 
void | 
setTimeoutInMs(int timeoutInMs)  | 
protected String gsExe
protected File gsProcessLogDir
protected int timeoutInMs
public int getTimeoutInMs()
public void setTimeoutInMs(int timeoutInMs)
public void convertPdfToJpeg(File pdfFile, File workingDir) throws TimeoutException, Exception
TimeoutExceptionExceptionpublic PdfImagesStorage convertAndGetPdfAsJpeg(File pdfFile, File workingDir) throws Exception
ExceptionCopyright © 2020. All rights reserved.