Hi,
Form an uploaded document I am extracting content between hidden character.Then I converting this extracted node to an html string and storing in the database. I have to create another document same as input doc( all the content I will take from the uploaded doc) . While creating this another document some numbering is not coming like,
Testing
1.1. tests
1.2. sample
1.3. Items
In the newly created document with the xtracted html content showing
Testing
1 tests
2 sample
3 Items
Like this. Not the exact numbering i put. I am attacheing my source code, input_doc,output_doc and expected_output. sample_doc.zip (596.4 KB)
You can use any of the following two ways to fix this problem:
Workaround 1:
Inside your ‘getHtmlContentFromBookMark’ method, instead of getting HTML String by using Document.toString() method, please save the document to HTML stream by using Document.save method. Please check the last lines of this function: