I am trying to read a word file para by para and also need para style with that at the same time. And same case while reading a paragraph , my need is to read characters with their styles.
plz can anyone tell me how to do this using docx4j. ASAP
Ex: para in word file is like:-
1. "MOLECULAR ENDOCRINOLOGY : ENDOCRINE GENETICS" is a paragraph having "chap Title" style.
"MOLECULAR ENDOCRINOLOGY" is having "main title" as character style,
"ENDOCRINE GENETICS" is having "sub title" style as character style.
and 2. "Isolation : Digestion of DNA" is a paragraph having "chap Title" style.
"MOLECULAR ENDOCRINOLOGY" is having "main title" as character style,
"ENDOCRINE GENETICS" is having "sub title" style as character style.
So output should be like:
char style is: "main title", text: "MOLECULAR ENDOCRINOLOGY"
char style is: "sub title", text: "ENDOCRINE GENETICS"
char style is: "main title", text: "Isolation"
char style is: "sub title", text: "Digestion of DNA"