Class PdfContentTextLocator

java.lang.Object
org.openpdf.text.pdf.parser.PdfContentStreamHandler
org.openpdf.text.pdf.parser.PdfContentTextLocator

public class PdfContentTextLocator extends PdfContentStreamHandler
Author:
dgd
  • Constructor Details

    • PdfContentTextLocator

      public PdfContentTextLocator(TextAssembler renderListener, String pattern, int page)
      Construct a content PdfContetStreamHandler for regex-based text extraction pattern
      Parameters:
      renderListener - the text assembler
      pattern - the pattern to match text against
      page - PdfPage to inspect
    • PdfContentTextLocator

      public PdfContentTextLocator(TextAssembler renderListener, float[] coordinates, int page)
      Construct a content PdfContetStreamHandler for coordinates-based text extraction pattern
      Parameters:
      renderListener - the text assembler
      coordinates - the bounding box to search text within
      page - PdfPage to inspect
  • Method Details