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 StringextractPage(File pdfFile, int pageId)List<RegionExtractionResult>extractRegions(File pdfFile, List<Region> regions)intgetPageCount(File pdfFile)DimensiongetPageDimensionInPt(File pdfFile, int pageId)voidsetLanguage(String lang)
-
-
-
Method Detail
-
getPageDimensionInPt
public Dimension getPageDimensionInPt(File pdfFile, int pageId) throws Exception
- Specified by:
getPageDimensionInPtin classAbstractExtractionService- Throws:
Exception
-
getPageCount
public int getPageCount(File pdfFile) throws Exception
- Specified by:
getPageCountin 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:
extractRegionsin classAbstractExtractionService- Throws:
IOException
-
setLanguage
public void setLanguage(String lang)
- Specified by:
setLanguagein classAbstractExtractionService
-
-