简体   繁体   English

使用iText解析PDF帖子数据时引发异常

[英]Exception thrown parsing the PDF post data using iText

I am trying to implement the submit form & parse the submitted data in the back-end as provided in the this link , but in vain. 我正在尝试实现提交表单并按此链接中的说明在后端解析提交的数据,但是徒劳。 I am facing a weird error (please see below) which I am not able to find a solution and any help in solving this problem is appreciated. 我遇到一个奇怪的错误(请参阅下文),该错误无法找到解决方案,感谢您对解决此问题的任何帮助。

Problem 问题

I fill up the form in the PDF and hit the submit button (similar to http://itextpdf.com:8180/book/xfdf ) when I read the post data in the server, I get the below IOException. 当我在服务器中读取发布数据时,我在PDF中填写了表单,然后单击了Submit按钮(类似于http://itextpdf.com:8180/book/xfdf ),我得到了下面的IOException。

Exception 例外

SEVERE: Servlet.service() for servlet [ITextServlet] in context with path
[/IText_WEB_Project] threw exception
java.io.IOException: Expected > for tag: <{1}/> near line 1, column 13

Thanks in advance. 提前致谢。

Note 注意

I have also did a quick search over google but I couldn't find an appropriate solution for the above problem, I have also contact the iText mailing list and waiting for some positive response. 我也对Google进行了快速搜索,但找不到上述问题的合适解决方案,我还联系了iText邮件列表,并等待一些积极的答复。

We also got the error java.io.IOException: Expected > for tag: <{1}/>. 对于标签:<{1} />,我们还收到错误java.io.IOException:Expected>。 In our application it happened when someone typed in a '<' character in the webform, which was somehow not escaped when filling the xfdf. 在我们的应用程序中,当有人在Web表单中键入“ <”字符时发生了这种情况,在填充xfdf时无法以某种方式逃脱。 We use itext-4.2.1. 我们使用itext-4.2.1。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM