inputdoc.docx (332.8 KB)
In a .docx file, it have presented an figure and paragraph consecutively, how it is should to separate them with a line break/paragraph break before a specific startpara (e.g., Fig.). Please fin…... Detect the paragraph whose text starts with “Fig” . Insert an...if (para.toString(SaveFormat.TEXT).trim().startsWith("Fig")) {...