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.StringgsExeprotected java.io.FilegsProcessLogDirprotected inttimeoutInMs
-
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 ImagesStorageconvertAndGetDocumentAsPng(java.io.File doc, java.io.File workingDir)voidconvertDocToPng(java.io.File documentFile, java.io.File workingDir)intgetTimeoutInMs()voidsetTimeoutInMs(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:
convertDocToPngin classAbstractDocumentToImageService- Throws:
java.lang.Exception
-
convertAndGetDocumentAsPng
public ImagesStorage convertAndGetDocumentAsPng(java.io.File doc, java.io.File workingDir) throws java.lang.Exception
- Specified by:
convertAndGetDocumentAsPngin classAbstractDocumentToImageService- Throws:
java.lang.Exception
-
-