

Private class ReplaceEvaluatorFindAndInsert : IReplacingCallback (new Regex(Regex.Escape(searchText), RegexOptions.IgnoreCase), string.Empty, replaceOptions) ReplaceOptions.ReplacingCallback = new ReplaceEvaluatorFindAndInsert(imageStream, imageWidth, imageHeight, replaceContentType) Public void Replace(string searchText, MemoryStream imageStream, Double imageWidth, Double imageHeight, SearchReplaceContentType replaceContentType) Old text cannot contain special characters. (new Regex(Regex.Escape(searchText), RegexOptions.IgnoreCase), replaceContent, replaceOptions) ReplaceOptions.Direction = FindReplaceDirection.Forward Public void Replace(string searchText, string replaceContent, SearchReplaceContentType replaceContentType)įindReplaceOptions replaceOptions = new FindReplaceOptions() New text can contain any special characters. Please see below for IReplacingCallback implementation code: public class ReplaceHelper Note: Created new ticket based on recommendation from this response PCF + libgdiplus on. Can you please share the supported MS word format when using ubuntu+aspose or PCF+aspose to understand the limitation of font and to get consistent look and feel of document templates. Font style changes in final generated document.Replace logic is implemented using the IReplacingCallback interface. Text is not getting replaced with image generated using aspose.barcode.I’m facing two issues when working with MS word in PCF hosted dev environment.
