Free Support Forum -

How do you remove unused/unmerged Mail Merge fields in Aspose.Words Cloud SDK for PHP?

There are certain data sets that may not be present. On the .NET version this was handled easily enough, but after we switched over to Cloud, this is something that we need to address as it leaves the mergefields behind in the generated document.

Also can you point me in the direction to convert a docx to pdf using the Aspose Cloud PHP SDK? The sample in the docs uses an object that I guess is for the Word SDK but not in the Cloud SDK.

Thank you.

Hi Alfran,

Thanks for your inquiry. You can use executeTemplate (Controller Resource) and pass the following parameter in string as follows:,UnusedFields,RemoveTitleRow&filename=outFileName.pdf;

Please refer to the following articles in documentation which outline the usage of mail merge functionality of Aspose.Words for Cloud.

Also, please refer to the following article:
Convert Word to Images, Multipage TIFF, HTML, PDF and other File Format using Cloud Storage

Hope, this helps.

Best regards,