We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Word to PDF conversion lost track changes insertion color

Hello Team,
Im using Aspose words to convert MS word documents to PDF. I see that if source document has Track change enabled and user sets a custom color for the insertion text then the color is lost when saved to PDF.

Please find attached a sample docx file.

My code is simple:

using (var docStream = new FileStream(“file-path”, FileMode.Open))
{
var saveOptions = new PdfSaveOptions();
saveOptions.TextCompression = PdfTextCompression.Flate;
saveOptions.JpegQuality = JPEG_QUALITY;
var document = loadDocument(docStream);
document.Save(request.pdfPath);
}
track-change-insertion-color-lost.zip (102.5 KB)

@bhaskarag,

You can use the following lines of code to adjust the Revision colors in generated PDF:

doc.LayoutOptions.RevisionOptions.DeletedTextColor = RevisionColor.Green;
doc.LayoutOptions.RevisionOptions.InsertedTextColor = RevisionColor.Red;

We do not think there is a way to ensure that colors used for different authors are displayed the same by two copies of MS Word application (e.g. at your end and at another machine on our end), let alone Aspose.Words. These settings are specific to an application (MS Word or Aspose.Words) and are not stored in the document.

You can read a bit of additional information here:
Change the track changes color

You may please also check ‘How does MS Word choose which color to allocate to which author’ section in here.

So, this does not seem to be an issue with Aspose.Words.

awais.hafeez@

Makes sense.
Thank you.