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 String
extractPage(File pdfFile, int pageId)
List<RegionExtractionResult>
extractRegions(File pdfFile, List<Region> regions)
int
getPageCount(File pdfFile)
Dimension
getPageDimensionInPt(File pdfFile, int pageId)
void
setLanguage(String lang)
-
-
-
Method Detail
-
getPageDimensionInPt
public Dimension getPageDimensionInPt(File pdfFile, int pageId) throws Exception
- Specified by:
getPageDimensionInPt
in classAbstractExtractionService
- Throws:
Exception
-
getPageCount
public int getPageCount(File pdfFile) throws Exception
- Specified by:
getPageCount
in classAbstractExtractionService
- Throws:
Exception
-
extractPage
public String extractPage(File pdfFile, int pageId) throws IOException
- Throws:
IOException
-
extractRegions
public List<RegionExtractionResult> extractRegions(File pdfFile, List<Region> regions) throws IOException
- Specified by:
extractRegions
in classAbstractExtractionService
- Throws:
IOException
-
setLanguage
public void setLanguage(String lang)
- Specified by:
setLanguage
in classAbstractExtractionService
-
-