java - Apache POI for doc to html with footnotes -


i using apache poi converting doc html. footnote not converted html. when converting doc file html footnotes available in doc file not present in html file/content. how can persist footnotes after conversion?

do that.i hope you..!

public static void readmydocument(string filename){       poifsfilesystem fs = null;       try {           fs = new poifsfilesystem(new fileinputstream(filename));           hwpfdocument doc = new hwpfdocument(fs);            /** read content **/           readparagraphs(doc);          int pagenumber=1;          /** try reading header page 1**/         readheader(doc, pagenumber);          /** try reading footer page 1**/         readfooter(doc, pagenumber);       } catch (exception e) {         e.printstacktrace();     }   }     public static void readparagraphs(hwpfdocument doc) throws exception{       wordextractor = new wordextractor(doc);        /**get total number of paragraphs**/       string[] paragraphs = we.getparagraphtext();       system.out.println("total paragraphs: "+paragraphs.length);        (int = 0; < paragraphs.length; i++) {            system.out.println("length of paragraph "+(i +1)+": "+ paragraphs[i].length());           system.out.println(paragraphs[i].tostring());        }  }  public static void readheader(hwpfdocument doc, int pagenumber){       headerstories headerstore = new headerstories( doc);       string header = headerstore.getheader(pagenumber);     system.out.println("header is: "+header);  }  public static void readfooter(hwpfdocument doc, int pagenumber){        headerstories headerstore = new headerstories( doc);       string footer = headerstore.getfooter(pagenumber);       system.out.println("footer is: "+footer);    } 

Comments

Popular posts from this blog

android - MPAndroidChart - How to add Annotations or images to the chart -

javascript - Add class to another page attribute using URL id - Jquery -

firefox - Where is 'webgl.osmesalib' parameter? -