pdf reading via pdfbox in java
<p>I have encountered a problem while reading the pdf using pdfbox. My actual pdf is partially unreadable so when i copy and paste the unreadable part in an editor it shows little box symbols, but when i try to read the same file via pdfbox , those characters aren't read (and i don't  expect them to be read). What I expect is that I at least get some symbols or some random characters instead of the actual characters. Is there any way to do that. That line is getting selected so it isn't an image. Has anyone found any workaround this?</p>

<p>There is a pdfbox example where we override writeString method under pdfTextStripper class to get some extra font properties. I am using that method to get my text and some font properties.
So my question was why does the pdfbox doesn't read every character(it may print gibberish). But in my case, I counted the no. of times the method was called(each method call correspond to each character) and saw that the no. of method calls did match the no.of characters in output text but didn't match  the total no. of characters in the pdf. Here's a sample pdf, the word "Profit" is unreadable and pdf doesn't even display gibberish for this word, It just altogether skips it.
Here's the link.
<a href="https://drive.google.com/file/d/0B_Ke2amBgdpedUNwVTR3RVlRTFE/view?usp=sharing" rel="nofollow">https://drive.google.com/file/d/0B_Ke2amBgdpedUNwVTR3RVlRTFE/view?usp=sharing</a></p>