HtmlDiffOutputGenerator

Inheritance: java.lang.Object, com.aspose.pdf.comparison.outputgenerator.HtmlDiffOutputGenerator

All Implemented Interfaces: IFileOutputGenerator, IStringOutputGenerator

public class HtmlDiffOutputGenerator extends Object implements IStringOutputGenerator , IFileOutputGenerator

Represents a class for generating html representation of texts differences. Deleted line breaks are indicated by - paragraph mark.

Constructors

ConstructorDescription
HtmlDiffOutputGeneratorCreates an instance of {@link HtmlDiffOutputGenerator} class.
HtmlDiffOutputGeneratorCreates an instance of {@link HtmlDiffOutputGenerator} class.

Methods

MethodDescription
generateOutputGenerates the output based on the differences between texts and saves it to a file.
generateOutputGenerates the output based on the differences between texts and saves it to a file.
generateOutput1Generates the output based on the differences between texts and saves it to a file.
generateOutput1Generates the output based on the differences between texts and saves it to a file.
generateOutputInternal
generateOutputInternal
generateOutputInternal1Internal method
generateOutputInternal1
getDeleteStyleGets and sets the CSS-style string for Delete operation. Example: color: #003300; background-color: #ccff66;
getEqualStyleGets and sets the CSS-style string for Equal operation. Example: color: #003300; background-color: #ccff66;
getInsertStyleGets and sets the CSS-style string for Insert operation. Example: color: #003300; background-color: #ccff66;
getStrikethroughDeletedGet or set text-decoration: line-through style for the delete operation. Default value is {@code False}.
setDeleteStyleGets and sets the CSS-style string for Delete operation. Example: color: #003300; background-color: #ccff66;
setEqualStyleGets and sets the CSS-style string for Equal operation. Example: color: #003300; background-color: #ccff66;
setInsertStyleGets and sets the CSS-style string for Insert operation. Example: color: #003300; background-color: #ccff66;
setStrikethroughDeletedGet or set text-decoration: line-through style for the delete operation. Default value is {@code False}.

HtmlDiffOutputGenerator

public HtmlDiffOutputGenerator()

Creates an instance of {@link HtmlDiffOutputGenerator} class.

HtmlDiffOutputGenerator

Creates an instance of {@link HtmlDiffOutputGenerator} class.

generateOutput

Generates the output based on the differences between texts and saves it to a file.

generateOutput

Generates the output based on the differences between texts and saves it to a file.

generateOutput1

Generates the output based on the differences between texts and saves it to a file.

generateOutput1

Generates the output based on the differences between texts and saves it to a file.

generateOutputInternal

generateOutputInternal

generateOutputInternal1

Internal method

generateOutputInternal1

getDeleteStyle

public final String getDeleteStyle()

Gets and sets the CSS-style string for Delete operation. Example: color: #003300; background-color: #ccff66;

Returns: String value

getEqualStyle

public final String getEqualStyle()

Gets and sets the CSS-style string for Equal operation. Example: color: #003300; background-color: #ccff66;

Returns: String value

getInsertStyle

public final String getInsertStyle()

Gets and sets the CSS-style string for Insert operation. Example: color: #003300; background-color: #ccff66;

Returns: String value

getStrikethroughDeleted

public final boolean getStrikethroughDeleted()

Get or set text-decoration: line-through style for the delete operation. Default value is {@code False}.

Returns: boolean value

setDeleteStyle

Gets and sets the CSS-style string for Delete operation. Example: color: #003300; background-color: #ccff66;

setEqualStyle

Gets and sets the CSS-style string for Equal operation. Example: color: #003300; background-color: #ccff66;

setInsertStyle

Gets and sets the CSS-style string for Insert operation. Example: color: #003300; background-color: #ccff66;

setStrikethroughDeleted

public final void setStrikethroughDeleted(boolean value)

Get or set text-decoration: line-through style for the delete operation. Default value is {@code False}.

Parameters:

ParameterTypeDescription
valueboolean value