@Test public void test1() throws IOException { final PdfReader pdfReader = TestResourceUtils.getResourceAsPdfReader(this, "test.pdf"); PdfReaderContentParser parser = new PdfReaderContentParser(pdfReader); float x1, y1, x2, y2; x1 = 203; x2 = 224; y1 = 842 - 44; y2 = 842 - 93; String extractedText = parser.processContent(1, new GlyphTextRenderListener(new FilteredTextRenderListener(new LocationTextExtractionStrategy(), new RegionTextRenderFilter(new com.itextpdf.text.Rectangle(x1, y1, x2, y2))))).getResultantText(); Assert.assertEquals("1234\nt5678", extractedText); }
public String getResultantText() { return delegate.getResultantText(); }
GlyphTextRenderListener extends GlyphRenderListener implements TextExtractionStrategy { public String getResultantText() { return delegate.getResultantText(); } }
GlyphTextRenderListener extends GlyphRenderListener implements TextExtractionStrategy { public String getResultantText() { return delegate.getResultantText(); } GlyphTextRenderListener(TextExtractionStrategy delegate); }
GlyphTextRenderListener extends GlyphRenderListener implements TextExtractionStrategy { public String getResultantText() { return delegate.getResultantText(); } GlyphTextRenderListener(TextExtractionStrategy delegate); String getResultantText(); }
GlyphTextRenderListener extends GlyphRenderListener implements TextExtractionStrategy { public String getResultantText() { return delegate.getResultantText(); } GlyphTextRenderListener(TextExtractionStrategy delegate); String getResultantText();  }