2016-09-19 116 views
1

我用java iText的PDF阅读器来阅读从PDF数据,但消息当我运行程序我获得以下错误请等待..用Java iText的PDF阅读器

Please wait... 

If this message is not eventually replaced by the proper contents of the document, your PDF 
viewer may not be able to display this type of document. 

You can upgrade to the latest version of Adobe Reader for Windows®, Mac, or Linux® by 
visiting http://www.adobe.com/go/reader_download. 

    For more assistance with Adobe Reader visit http://www.adobe.com/go/acrreader. 

Windows is either a registered trademark or a trademark of Microsoft Corporation in the United States and/or other countries. Mac is a trademark 
of Apple Inc., registered in the United States and other countries. Linux is the registered trademark of Linus Torvalds in the U.S. and other 
countries. 

PDF包含表格和表格。我正在使用ubutnu和adobe阅读器已更新。

+0

AFAIK其他读者然后Adobe Reader与交互式表单有巨大的问题。通常在失败时,你可以做的事情不多。 –

回答

1

这是通常只包含一个带有XFA格式的pdf的常规内容。因此,通过文本提取来提取是没有错误的。

您可以尝试通过itext的表单相关API提取表单数据。 iText AcroForm API对XFA数据有有限的支持,还有提取XFA xml的方法。

+0

谢谢。它的工作。我可以以XML格式提取数据。 – hrishi