/** * Returns the first paragraph.<br> * This is a shortcut for getParagraph( getFirstParagraphNr() ). * It is <b>not</b> the same as getParagraph( 0 ), because the physically first paragraph often contain tables etc. */ public Paragraph getFirstParagraph() { return this.getParagraph(firstParagraphNr); }
private String getPlainDocumentText(Page page) { String text = ""; ParsedPage pp = parser.parse(page.getText()); if (onlyFirstParagraph) { if (pp != null && pp.getParagraph(0) != null) { text = pp.getParagraph(0).getText(); } } else { if (pp != null ) { text = pp.getText(); } } return text; }
@Override protected String getPlainDocumentText(Page page) { String text = ""; ParsedPage pp = parser.parse(page.getText()); if (onlyFirstParagraph) { if (pp != null && pp.getParagraph(0) != null) { text = pp.getParagraph(0).getText(); } } else { if (pp != null ) { text = pp.getText(); } } return text; }
Paragraph p = pp.getParagraph(i);