Foxit WebPDF Viewer – Discontinued

Why Eclipse reports “The method getTextContent() is undefined” always in org.w3c.dom.Node class when running webpdf-extension-sample project?

The project uses dom4j->xml-apis, it calls node class from dom4j but not from JDK. So it reports node class error. To solve the problem, right click properties of the project, select builder path, and then move the JDK up to maven dependencies, it will call the node class from JDK. The error will disappear.

Note: This article refers to a deprecated version of a Foxit Product. If you are still using Foxit WebPDF Viewer, please refer to your download package documents for Developer Guide and API Reference.

Get a trial version of Foxit PDF SDK for Web and see the brand new features we’ve released for our web-based version!

 

Updated on March 26, 2017

Was this article helpful?
Thanks for your feedback. If you have a comment on how to improve the article, you can write it here: