title: How to find table border lines in pdf using PDFBox?
body: <p>I am trying to find table border lines in pdf. I used <code>PrintTextLocations</code> class of pdfBox to make words. Now I am looking to find the coordinates of different lines that form the table. I tried using <code>org.apache.pdfbox.pdfviewer.PageDrawer</code>, but I am unable to find any character/graphic containing those lines. I tried two ways:</p>
  
  <p>First:</p>
  
  <pre><code>Graphics g = null;
  Dimension d = new Dimension();
  d.setSize(700, 700);
  PageDrawer pageDrawer = new PageDrawer();
  pageDrawer.drawPage(g, myPage, d);
  </code></pre>
  
  <p>It gave me null pointer exception. So secondly, I tried to override <code>processStream</code> function, but I am unable to get any stroke. Kindly help me out. I am open in using any other library which gives me coordinates of the lines in the table. And another quick question, what kind of objects are those table border lines in pdfbox? Are these graphics or are these characters?</p>
  
  <p>Here is the link to the sample pdf I am trying to parse:
  <a href="http://stats.bls.gov/news.release/pdf/empsit.pdf" rel="noreferrer">http://stats.bls.gov/news.release/pdf/empsit.pdf</a>
  and trying to get the table lines on page number 8.</p>
  
  <p><strong>Edit</strong> :  I faced another problem, while parsing this pdf's page number 1, I am unable to get any lines as the <code>pathIterator</code> in <code>printPath()</code> function is empty, although <code>strokePath()</code> function is called for each line. How to work with this pdf?</p>