I am converting a docx to pdf using ASPOSE where I have a predefined docx template. Template has document heading and some tokens. I am replacing those tokens by it’s value using replace function. Here I am facing 3 different issues listed below,
- Template header has some text and token. When I try to replace the token with value, that value replaces whole line of header (i.e. replaces text plus token. where the expected result must be text + replaced token value)
- Template has two tokens on same line which is separated by dash (-) symbol. Both token has different value however prefix of both token is same. This gives a inappropriate result after replace.
- Template has table and table cell has a rich text data. That rich text is present in some other docx file and I am merging the parent document which has table and other document which has rich text ( table cell values). In this scenario rich text is getting merged properly under respective columns but it affects on watermark. The replaced rich text hide its background watermark.
could you please provide me the root cause of these issues and workaround too.