Class PdfToImageService
- java.lang.Object
-
- step.plugins.compare.services.atomic.AbstractDocumentToImageService
-
- step.plugins.pdftest.services.atomic.PdfToImageService
-
public class PdfToImageService extends AbstractDocumentToImageService
This service is responsible for the conversion of PDF Documents to a list of images
-
-
Field Summary
Fields Modifier and Type Field Description protected String
gsExe
protected File
gsProcessLogDir
protected int
timeoutInMs
-
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 ImagesStorage
convertAndGetDocumentAsPng(File doc, File workingDir)
void
convertDocToPng(File documentFile, File workingDir)
int
getTimeoutInMs()
void
setTimeoutInMs(int timeoutInMs)
-
Methods inherited from class step.plugins.compare.services.atomic.AbstractDocumentToImageService
getTemplatePageFile
-
-
-
-
Method Detail
-
getTimeoutInMs
public int getTimeoutInMs()
-
setTimeoutInMs
public void setTimeoutInMs(int timeoutInMs)
-
convertDocToPng
public void convertDocToPng(File documentFile, File workingDir) throws Exception
- Specified by:
convertDocToPng
in classAbstractDocumentToImageService
- Throws:
Exception
-
convertAndGetDocumentAsPng
public ImagesStorage convertAndGetDocumentAsPng(File doc, File workingDir) throws Exception
- Specified by:
convertAndGetDocumentAsPng
in classAbstractDocumentToImageService
- Throws:
Exception
-
-