Just upload, convert your documents and get results in a few seconds. No plugin or software installation required for you. It works from all platforms including Windows, Linux, Mac OS, Android, and iOS. The HTML file will be saved to the specified path.įor converting XHTML documents to PDF, XPS, DOCX, JPG, PNG, BMP, TIFF, GIF and other formats.Call the convertHTML() method to convert XHTML to HTML.Initialize an HTMLDocument from an XHTML file.Add a library reference to your Java project.If you would like to consider conversion functionality in your product or you want to convert XHTML to HTML programmatically, please see the Java code example above or learn theĭevelopers can easily convert XHTML file to HTML in just a few lines of code:
Load XHTML document HTMLDocument document = new HTMLDocument( 'template.xhtml')