title: How to get raw text from pdf file using java
body: <p>I have some pdf files, Using pdfbox i have converted them into text and stored into text files, Now from the text files i want to remove</p>
  
  <ol>
  <li>Hyperlinks</li>
  <li>All special characters</li>
  <li>Blank lines</li>
  <li>headers footers of pdf files</li>
  <li>“1)”,“2)”, “a)”, “bullets”, etc.</li>
  </ol>
  
  <p>I want to get valid text line by line like this:</p>
  
  <blockquote>
    <p>We propose OntoGain, a method for ontology learning from multi-word concept terms extracted from plain text. OntoGain follows an ontology learning process dened by distinct processing layers. Building upon plain term extraction a con-cept hierarchy is formed by clustering the extracted concepts. The derived term taxonomy is then enriched with non-taxonomic relations. Several dierent state-of-the-art methods have been examined for implementing each layer. OntoGain is based upon multi-word term concepts, as multi-word or compound terms are vested with more solid and distinctive semantics than plain single word terms. We opted for a hierarchical clustering method and Formal Concept Analysis (FCA) algorithm for building the term taxonomy. Furthermore an association rule algorithm is applied for revealing non-taxonomic relations. A method which tries to carry out the most appropriate generalization level between a relation's concepts is also implemented. To show proof of concept, a system prototype is implemented. The OntoGain allows transformation of the derived ontology into OWL using Jena Semantic Web Frame-work1. OntoGain is applied on two separate data sources a medical and computer corpus and its results are compared with similar results obtained by Text2Onto, a state-of-the-art-ontology learning method. The analysis of 11.5 CCD1.1 results indicates that OntoGain performs better than Text2Onto in terms of precision extracts more correct concepts while being more selective extracts fewer but more reasonable concepts.</p>
  </blockquote>
  
  <p>How can I achieve this?</p>