Class PdfToImageService
- java.lang.Object
-
- step.plugins.pdftest.services.atomic.PdfToImageService
-
public class PdfToImageService extends Object
This service is responsible for the conversion of PDF Documents to a list of images
-
-
Field Summary
Fields Modifier and Type Field Description protected StringgsExeprotected FilegsProcessLogDirprotected inttimeoutInMs
-
Constructor Summary
Constructors Constructor Description PdfToImageService(String gsExe, File gsProcessLogDir, int timeoutInMs)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PdfImagesStorageconvertAndGetPdfAsJpeg(File pdfFile, File workingDir)voidconvertPdfToJpeg(File pdfFile, File workingDir)intgetTimeoutInMs()voidsetTimeoutInMs(int timeoutInMs)
-
-
-
Method Detail
-
getTimeoutInMs
public int getTimeoutInMs()
-
setTimeoutInMs
public void setTimeoutInMs(int timeoutInMs)
-
convertPdfToJpeg
public void convertPdfToJpeg(File pdfFile, File workingDir) throws TimeoutException, Exception
- Throws:
TimeoutExceptionException
-
convertAndGetPdfAsJpeg
public PdfImagesStorage convertAndGetPdfAsJpeg(File pdfFile, File workingDir) throws Exception
- Throws:
Exception
-
-