Hello,
it seems that there is problem when ‘IncludeText’ is used in a frame and updateFields is called.
I have a document template that includes text from another document (using IncludeText).
IncludeText is used both in a text box and in a text frame. After calling updateFields result of IncludeText is different.
Update of IncludeText in text box works fine.
Update of IncludeText in frame is not ok. Line of IncludeText is now located under the frame.
In Aspose.Word.Java version 13.5 update of IncludeText in frames worked fine. In latest version 18.4 it fails.
I have added some files to reproduce the problem:
- Frame.dotx (document template using IncludeText in text box and frame
- IncludeTextFile.docx (Document that contains the text for including)
- TestIncludeTextWithinFrame.java (simple java file for updating fields and save as new document)
- Frame Result.docx (Created document after calling TestIncludeTextWithinFrame.java)
IncludeText.zip (58.5 KB)
Thanks a lot.
Best regards,
Matthias Schlosser