1

There is an error happen when I read a pdf via Itext7.Then I download the resource code to debug the code.Finally,I find a bug in Itext7.

enter image description here

7
  • It is should be createPdfVersion(1, 1)? It is already 1.0 exist in PdfVersion.java Commented Nov 26, 2018 at 2:55
  • What is the error? Commented Nov 26, 2018 at 4:01
  • Error:pdf.version.not.valid . When I read a pdf via new PdfDocument(new PdfReader(new FileInputStrean(new File(...)))),The Itext will get the pdf's version from the pdf and compare with the variable which defined in PdfVersion File.It will show a error pdf.version.not.valid when the pdf version does not exist in the defined variable. Commented Nov 26, 2018 at 4:07
  • But there are two save value in the PdfVersion.You can see the image in question. Commented Nov 26, 2018 at 4:11
  • 1
    In such cases it is always better to have the error visible without the need of opening another link. I inlined the image for you. You were not allowed to do this, so you should have described it in text form. Furthermore, this is not really a question but a bug report. That being said, I'm sure people at itext will become aware of this and fix it soon. Commented Nov 26, 2018 at 5:12

1 Answer 1

4

Please use the most recent version of iText. This has been fixed in a commit in August 2016.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.