diff --git a/tika-parsers/tika-parsers-standard/tika-parsers-standard-modules/tika-parser-pdf-module/src/main/java/org/apache/tika/parser/pdf/AbstractPDF2XHTML.java b/tika-parsers/tika-parsers-standard/tika-parsers-standard-modules/tika-parser-pdf-module/src/main/java/org/apache/tika/parser/pdf/AbstractPDF2XHTML.java index 5eea420262..4bc31c3d9d 100644 --- a/tika-parsers/tika-parsers-standard/tika-parsers-standard-modules/tika-parser-pdf-module/src/main/java/org/apache/tika/parser/pdf/AbstractPDF2XHTML.java +++ b/tika-parsers/tika-parsers-standard/tika-parsers-standard-modules/tika-parser-pdf-module/src/main/java/org/apache/tika/parser/pdf/AbstractPDF2XHTML.java @@ -1369,7 +1369,7 @@ protected void processPages(PDPageTree pages) throws IOException { // && (endBookmarkPageNumber == -1 || // currentPageNo <= endBookmarkPageNumber)) // { - super.setStartPage(1); + super.setStartPage(-1); for (PDPage page : pages) { if (getCurrentPageNo() >= getStartPage() && getCurrentPageNo() <= getEndPage()) { processPage(page);