Back to Blog

    Developer Blog

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

    Foxit WebPDF Viewer - Discontinued

    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.

    FoxitWebPDFViewer DeveloperGuide Page34 Image1 1024x254 FoxitWebPDFViewer DeveloperGuide Image1 Page34 Image2

    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!