Package step.plugins.pdftest
Class PdfTestServices
- java.lang.Object
-
- step.framework.server.AbstractServices<step.core.access.User>
-
- step.core.deployment.AbstractStepServices
-
- step.plugins.compare.DocumentCompareServices
-
- step.plugins.pdftest.PdfTestServices
-
@Singleton @Path("/pdftest") public class PdfTestServices extends DocumentCompareServices
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class step.plugins.compare.DocumentCompareServices
DocumentCompareServices.LanguageEntity, DocumentCompareServices.TestScenarioOutput, DocumentCompareServices.TestScenarioOutputError
-
-
Field Summary
-
Fields inherited from class step.plugins.compare.DocumentCompareServices
compareScenarioServices, docToImageServices, fileResolver, reportNodeAttachmentManager, sessionServices
-
-
Constructor Summary
Constructors Constructor Description PdfTestServices()
-
Method Summary
-
Methods inherited from class step.plugins.compare.DocumentCompareServices
getWorkingDir, init
-
Methods inherited from class step.core.deployment.AbstractStepServices
getContext, getExecutionRunnable, getObjectEnricher, getObjectFilter, getScheduler
-
-
-
-
Method Detail
-
getScenarioDirProperty
protected String getScenarioDirProperty()
- Specified by:
getScenarioDirProperty
in classDocumentCompareServices
-
initDocToImageService
protected void initDocToImageService()
- Specified by:
initDocToImageService
in classDocumentCompareServices
-
getExtractionService
protected AbstractExtractionService getExtractionService()
- Specified by:
getExtractionService
in classDocumentCompareServices
-
getSessionDir
protected File getSessionDir(String sessionid)
- Specified by:
getSessionDir
in classDocumentCompareServices
-
getWorkingDirPath
protected String getWorkingDirPath()
- Specified by:
getWorkingDirPath
in classDocumentCompareServices
-
getSupportedLanguages
protected DocumentCompareServices.LanguageEntity getSupportedLanguages()
- Specified by:
getSupportedLanguages
in classDocumentCompareServices
-
loadDocument
public void loadDocument(String sessionId, String filename) throws Exception
- Overrides:
loadDocument
in classDocumentCompareServices
- Throws:
Exception
-
getPageIdsWithAnchors
public Set<Integer> getPageIdsWithAnchors(String sessionId) throws Exception
- Overrides:
getPageIdsWithAnchors
in classDocumentCompareServices
- Throws:
Exception
-
testScenario
public DocumentCompareServices.TestScenarioOutput testScenario(String sessionId, String lang, Scenario.TestScenario testScenario) throws Exception
- Overrides:
testScenario
in classDocumentCompareServices
- Throws:
Exception
-
getDocumentPageAsImage
public jakarta.ws.rs.core.Response getDocumentPageAsImage(String sessionid, Integer pageid)
- Overrides:
getDocumentPageAsImage
in classDocumentCompareServices
-
extractRegionText
public String extractRegionText(String sessionid, String lang, RegionDefinion regionDef) throws Exception
- Overrides:
extractRegionText
in classDocumentCompareServices
- Throws:
Exception
-
saveScenario
public void saveScenario(String sessionid, Scenario scenario) throws IOException
- Overrides:
saveScenario
in classDocumentCompareServices
- Throws:
IOException
-
getScenario
public Scenario getScenario(String sessionid) throws IOException
- Overrides:
getScenario
in classDocumentCompareServices
- Throws:
IOException
-
getPdfPageCount
public Integer getPdfPageCount(String sessionid) throws Exception
- Overrides:
getPdfPageCount
in classDocumentCompareServices
- Throws:
Exception
-
getPageDimensionInPt
public Dimension getPageDimensionInPt(String sessionid, Integer pageid) throws Exception
- Overrides:
getPageDimensionInPt
in classDocumentCompareServices
- Throws:
Exception
-
getPdfFilename
public String getPdfFilename(String sessionid)
- Overrides:
getPdfFilename
in classDocumentCompareServices
-
getSupportedLanguages
public DocumentCompareServices.LanguageEntity getSupportedLanguages(String sessionid)
- Overrides:
getSupportedLanguages
in classDocumentCompareServices
-
-