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.
-
It is should be createPdfVersion(1, 1)? It is already 1.0 exist in PdfVersion.javaMing– Ming2018-11-26 02:55:58 +00:00Commented Nov 26, 2018 at 2:55
-
What is the error?chris– chris2018-11-26 04:01:28 +00:00Commented 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.Ming– Ming2018-11-26 04:07:48 +00:00Commented Nov 26, 2018 at 4:07
-
But there are two save value in the PdfVersion.You can see the image in question.Ming– Ming2018-11-26 04:11:47 +00:00Commented Nov 26, 2018 at 4:11
-
1In 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.mkl– mkl2018-11-26 05:12:48 +00:00Commented Nov 26, 2018 at 5:12
|
Show 2 more comments
1 Answer
Please use the most recent version of iText. This has been fixed in a commit in August 2016.
