static public void listContentStream ( File pdfFile , PrintWriter out ) throws IOException { PdfReader reader = new PdfReader ( pdfFile . getCanonicalPath ( ) ) ; int maxPageNum = reader . getNumberOfPages ( ) ; for ( int pageNum = 1 ; pageNum <= maxPageNum ; pageNum ++ ) { listContentStreamForPage ( reader , pageNum , out ) ; } }
Writes information about each page in a PDF file to the specified output stream .