Guys,
Here is a use case:
- I have a word template for filling.
- I need to fill customer data into the template (text fields, rarely checkboxes, totally about 100 fields on 4-8 pages).
- Export result to PDF.
- Process thousands of documents in batch mode in a limited time-frame, so performance is significant.
Considering the fact that it is not easy to address objects in word’s tree-like structure, what approaches would you recommend to work with the document efficiently (from performance point of view)?
- Place some template text like {Customer.LegalAddress.Street}, search such text with RegEx and replace template text with real data (I think it’s extremely time consuming).
- Place form fields in the document and work with form fields only (not sure that form fields support is well implemented <see <a href="https://forum.aspose.com/t/57271> and it will be faster).
- Use Mail Merge, but the problem is customer data structure is not plain object. It may contain some variable-length sub-items.
- Other approaches.
So, could you please share ideas how to work with your product in effective way.
Best regards,
Alex.