HtmlDiffOutputGenerator

HtmlDiffOutputGenerator

Overview

HtmlDiffOutputGenerator is a class in Aspose.PDF FOSS for .NET. Inherits from: IStringOutputGenerator, IFileOutputGenerator.

Writes a comparison result as HTML in the reference shape: a style sheet with an inserted, a deleted, an equal and a strikethrough class, then one block per edit list whose unchanged text is written plain and whose edits are spans of those classes.

This class declares 6 methods for HtmlDiffOutputGenerator objects in .NET programs. Available methods include: GenerateOutput, HtmlDiffOutputGenerator. Public members are accessible to any .NET application after installing the Aspose.PDF FOSS for .NET package. Properties: StrikethroughDeleted.

Properties

NameTypeAccessDescription
StrikethroughDeletedboolRead/WriteDraw deleted text with a line through it, on top of its colours.

Methods

SignatureDescription
HtmlDiffOutputGenerator()Create a generator with the default colours.
HtmlDiffOutputGenerator(textStyle: OutputTextStyle)Create a generator drawing each kind of edit in the given style.
GenerateOutput(differences: List<DiffOperation>)Calls GenerateOutput(differences) on this HtmlDiffOutputGenerator instance.
GenerateOutput(differences: List<List<DiffOperation>>)Calls GenerateOutput(differences) on this HtmlDiffOutputGenerator instance.
GenerateOutput(differences: List<DiffOperation>, targetFilePath: string)Calls GenerateOutput(differences, targetFilePath) on this HtmlDiffOutputGenerator instance.
GenerateOutput(differences: List<List<DiffOperation>>, targetFilePath: string)Calls GenerateOutput(differences, targetFilePath) on this HtmlDiffOutputGenerator instance.

See Also