public Document createDOM ( PDDocument doc ) throws IOException { /* We call the original PDFTextStripper.writeText but nothing should be printed actually because our processing methods produce no output. They create the DOM structures instead */ super . writeText ( doc , new OutputStreamWriter ( System . out ) ) ; return this . doc ; }
Loads a PDF document and creates a DOM tree from it .