Class PdfExtractionService
- java.lang.Object
-
- step.plugins.compare.services.atomic.AbstractExtractionService
-
- step.plugins.pdftest.services.atomic.PdfExtractionService
-
public class PdfExtractionService extends AbstractExtractionService
This service is responsible for the manipulation of PDF documents
-
-
Constructor Summary
Constructors Constructor Description PdfExtractionService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
extractPage(java.io.File pdfFile, int pageId)
java.util.List<RegionExtractionResult>
extractRegions(java.io.File pdfFile, java.util.List<Region> regions)
int
getPageCount(java.io.File pdfFile)
Dimension
getPageDimensionInPt(java.io.File pdfFile, int pageId)
void
setLanguage(java.lang.String lang)
-
-
-
Method Detail
-
getPageDimensionInPt
public Dimension getPageDimensionInPt(java.io.File pdfFile, int pageId) throws java.lang.Exception
- Specified by:
getPageDimensionInPt
in classAbstractExtractionService
- Throws:
java.lang.Exception
-
getPageCount
public int getPageCount(java.io.File pdfFile) throws java.lang.Exception
- Specified by:
getPageCount
in classAbstractExtractionService
- Throws:
java.lang.Exception
-
extractPage
public java.lang.String extractPage(java.io.File pdfFile, int pageId) throws java.io.IOException
- Throws:
java.io.IOException
-
extractRegions
public java.util.List<RegionExtractionResult> extractRegions(java.io.File pdfFile, java.util.List<Region> regions) throws java.io.IOException
- Specified by:
extractRegions
in classAbstractExtractionService
- Throws:
java.io.IOException
-
setLanguage
public void setLanguage(java.lang.String lang)
- Specified by:
setLanguage
in classAbstractExtractionService
-
-