Hello,
I’m fairly new to the Aspose Words/PDF library and wanted to inquire about how to approach a particular requirement.
-
We have a Word Document template that can have a “text” value placeholders. For example, <first_name> <last_name> where these placeholders will be replaced with the actual name like John Doe when we save the template to PDF. Additionally, we can have a place holder called <pdf_attachments> where this would be a different PDF Document “injected”/“inserted” into that placeholder.
-
The <pdf_attachment> tag could exist anywhere. E.g., top of the page, bottom of the page, middle of the page. Maybe even multiple tags on one page.
-
Can you recommend an approach to this requirement? Maybe a code sample already exists for this use case. I have a good idea on concatenating and/or inserting functionality. I’m interested if something may already exist for my specific requirement. Seems like the complicated part will be scanning through the document for the placeholders and inserting the content accordingly. Any suggestions are greatly appreciated.