List of usage examples for org.apache.pdfbox.text PDFTextStripper setEndPage
public void setEndPage(int endPageValue)
From source file:uk.org.openeyes.PDFFunctions.java
/** * * @param PDFDoc/*from w w w. j a v a2s.com*/ * @throws IOException */ public void dumpPDFStructure(PDDocument PDFDoc) throws IOException { PDFTextStripper stripper = new PDFFunctions(); stripper.setSortByPosition(true); stripper.setStartPage(0); stripper.setEndPage(PDFDoc.getNumberOfPages()); Writer dummy = new OutputStreamWriter(new ByteArrayOutputStream()); stripper.writeText(PDFDoc, dummy); }