diff --git a/tools/src/main/java/org/apache/pdfbox/tools/ExtractText.java b/tools/src/main/java/org/apache/pdfbox/tools/ExtractText.java index a39d0ad60cc..753f23c5335 100644 --- a/tools/src/main/java/org/apache/pdfbox/tools/ExtractText.java +++ b/tools/src/main/java/org/apache/pdfbox/tools/ExtractText.java @@ -184,8 +184,7 @@ public Integer call() AccessPermission ap = document.getCurrentAccessPermission(); if( ! ap.canExtractContent() ) { - System.out.println( "You do not have permission to extract text" ); - //SYSERR.println( "You do not have permission to extract text"); + SYSERR.println( "You do not have permission to extract text"); return 1; } @@ -330,7 +329,6 @@ private void extractPages(int startPage, int endPage, { for (int p = startPage; p <= endPage; ++p) { - //System.err.println("page " + p); stripper.setStartPage(p); stripper.setEndPage(p); try