0

i would like to ask your help..

so im accessing the page number of a PDF File through this code below

this.setfPage(Double.parseDouble(pdfl.getLabelsByPageIndices()[0]));

it works fine on all other documents except for one pdf file it gives a NullPointerException pointing on the code above.. im really confused .. is my pdf file the problem?

mj_nunez
  • 45
  • 1
  • 8
  • Page labels are optional in pdfs. Thus, you indeed have to check and not assume them to be present. That been said, your code line is not very helpful as you don't tell what `this` and `pdfl` are. And your question *is my pdf file the problem* can only be truly answered if you share your pdf. – mkl Apr 18 '16 at 04:22
  • it was indeed my PDF File that was the problem. thank you @mkl :) – mj_nunez Apr 18 '16 at 05:43

0 Answers0