Free Support Forum -

Create a link in a Mail Merge Word document template using Aspose.Words Cloud API


We are using the aspose cloud.
What is the merge field syntax to create a external link in the PDF.


This Topic is created by sohail.aspose using the Email to Topic plugin.


Thank you for contacting Aspose Support.

If we understood your question properly, you would like to insert an external link to a PDF document during Mail Merge. Insert HTML During Mail Merge article will help you in this regard.

Following cURL example inserts an external link to a PDF document in the template document:

// First get Access Token
// Get App Key and App SID from
curl -v "" \
-d 'grant_type=client_credentials&client_id=0B17F60A-6D69-426B-9ABD-79F35A6E9F7B&client_secret=53b8b19adffa41a3e87dbbd8858977ae' \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Accept: application/json"
// cURL example to populate Mustache Template with HTML Data
curl -v "" \
-T TestExecuteTemplateData.txt \
-H "Content-Type: multipart/form-data" \
-H "Accept: application/json" \
-H "Authorization: Bearer pilSfz7IlWT4zTmvpE3qztUN9MsVn2g5lRDoacx1ngr2jklNTQL6EiGMpp2wawwJlX5CDV2MTAk_nxAAhdOdlRSMUauYXFiCFTclMT-3EP-dPsZqxzKVsKbVmXmu1r64cizsng2X0tc_rPJDrG8t6MlZwcA2DuJDwmooIBF5hOpKWEgnSNCpehOy17vg4R11p6dQlo2gFcLtTIahX1Zjbb6Hrik9-ev9NbJ7MXB8QVl_G6gfYoqUYzYFq8TxwQUWIvLCLkju5uhiVuThLkoZGzMeVhSsgWmXa5Kb-W9bA4Ls1yI9p82jrYWHWEIkxKqjomzWqNEIO6ANz7XVdb4Z3ecjhYg9U9u45Q6tLRXM7teSJpHl6CB8KYNGu1PzWB3jnsI9bd-ETnMbIQDWHWQqeVp8YczwCWx3Tw2bUwkplEMEJp-G"

Input Document: (12.4 KB)
Mail Merge Data: (1.0 KB)
Output Document: (17.7 KB)

As mentioned in the article you should escape HTML characters in data source string. You may use this website to escape HTML characters.

Please feel free to contact us if you need any further information.

Hi Sohail,

We will try that.