Comparer is setting inserted text color to Red. How do I set this to blue like in the promo example

Hi,

I want to set the 'Inserted Change' text color to blue, as the promo example shows. Can't see how this work, any help is appreciated 


Image_6614_1701344739640


1 Reply

AA Akash Arul Syncfusion Team December 1, 2023 06:45 AM UTC

Hi Paul,

From the given details, we suspect that you compared two documents and saved the result as PDF. And we suspect your requirement is to change the color of the inserted text. To achieve your requirement, we suggest you to set the required color in InsertedTextColor API. Please find the code snippet below.

Code snippet:

//Sets the color to be used for inserted content Insertion

wordDocument.RevisionOptions.InsertedTextColor = RevisionColor.ClassicBlue;

Refer to the below UG documentation to know more about track changes in Word to PDF conversion.
https://help.syncfusion.com/file-formats/docio/word-to-pdf#track-changes-in-word-to-pdf-conversion

Refer to the below GitHub sample for revision options in track changes.
https://github.com/SyncfusionExamples/DocIO-Examples/tree/main/Word-to-PDF-Conversion/Change-track-changes-color

If you are saving the result as a ".docx" document and viewing it in the Microsoft Word application, then the inserted text color cannot be changed using the DocIO APIs. This is because the color of the track changes is not preserved at the file level, but rather in the Microsoft Word application itself. To achieve your requirement at the Microsoft Word application level, please follow the steps below.

Review -> Track changes options -> Advanced options -> Insertion color




Regards,
Akash.


Loader.
Up arrow icon