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
| Constructor | Description |
|---|---|
| HtmlDiffOutputGenerator | Creates an instance of {@link HtmlDiffOutputGenerator} class. |
| HtmlDiffOutputGenerator | Creates an instance of {@link HtmlDiffOutputGenerator} class. |
Methods
| Method | Description |
|---|---|
| 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 | Gets and sets the CSS-style string for Delete operation. Example: color: #003300; background-color: #ccff66; |
| getEqualStyle | Gets and sets the CSS-style string for Equal operation. Example: color: #003300; background-color: #ccff66; |
| getInsertStyle | Gets and sets the CSS-style string for Insert operation. Example: color: #003300; background-color: #ccff66; |
| getStrikethroughDeleted | Get or set text-decoration: line-through style for the delete operation. Default value is {@code False}. |
| 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 | Get 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:
| Parameter | Type | Description |
|---|---|---|
| value | boolean value |