Hello,
I am a Rookie at Aspose. I want to Replace multiple items in a Word document (like replace by Joe, replace by Miller and so on).
I use PHP and the SDK.
I am looking for an example with PHP please.
@andre1308
Please note ReplaceText API replaces a single string at a time. However, if you want to replace multiple strings then you may call ReplaceText API multiple times in a batch. Please may please check the batch tests example and amend it as per your requirement. Hopefully, it will help you to accomplish the task.
<?php
/*
* --------------------------------------------------------------------------------
* <copyright company="Aspose" file="BatchTests.php">
* Copyright (c) 2023 Aspose.Words for Cloud
* </copyright>
* <summary>
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
This file has been truncated. show original