We process dozens of DOCX files into individual PDF and then assemble them into one big PDF. When we produce our draft document we like to show the user the changes to the document just like Word does with Track Changes on. Deleted text should show up red with strikethrough, and inserted text just shows up red.
I process all the documents through a DocumentVisitor because we remove portions of the document based on user selections in our application. I also use it to detect revisions in a run and apply the track changes formatting we desire since it seems to be stripped out when we convert to PDF.
if (draft && run.IsDeleteRevision)
{
run.Font.Color = REVISION_COLOR;
run.Font.StrikeThrough = true;
}
This works well EXCEPT for auto-numbered paragraphs and bulleted lists. In Word they show up red and if deleted will also show up with strikethrough.
How do I change the font of a bullet or auto-number to be red and optionally also strikethrough?
Thanks.