Hi,
Is there any way, using your components, that I can read a .docx file, replace the merge fields with relevant files and then output as a PDF?
If so, which components would I use? PDF.net? Words?
Hi,
Hi Duane,
Thanks for your inquiry and our apologises for the late reply.
You can achieve this using Aspose.Words. Please see the first lines of code in the article here which demonstrates how you can search through all merge fields in a document.
After finding a merge field you can insert a document at the position of the merge field by using the InsertDocument method. You can find the code in this article here.
Finally you can directly render the document to PDF. Please see the code here for details.
If you have any further queries, please feel free to ask.
Thanks,