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 java.lang.String
gsExe
protected java.io.File
gsProcessLogDir
protected int
timeoutInMs
-
Constructor Summary
Constructors Constructor Description PdfToImageService(java.lang.String gsExe, java.io.File gsProcessLogDir, int timeoutInMs)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ImagesStorage
convertAndGetDocumentAsPng(java.io.File doc, java.io.File workingDir)
void
convertDocToPng(java.io.File documentFile, java.io.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(java.io.File documentFile, java.io.File workingDir) throws java.lang.Exception
- Specified by:
convertDocToPng
in classAbstractDocumentToImageService
- Throws:
java.lang.Exception
-
convertAndGetDocumentAsPng
public ImagesStorage convertAndGetDocumentAsPng(java.io.File doc, java.io.File workingDir) throws java.lang.Exception
- Specified by:
convertAndGetDocumentAsPng
in classAbstractDocumentToImageService
- Throws:
java.lang.Exception
-
-