**Inheritance:**
java.lang.Object, com.aspose.pdf.comparison.textcomparison.TextPdfComparer

```
public class TextPdfComparer extends Object
```

Represents a class to comparison two PDF pages or PDF documents.

## Constructors

| Constructor | Description |
| --- | --- |
| [TextPdfComparer](#TextPdfComparer--) |  |

## Methods

| Method | Description |
| --- | --- |
| [assemblyDestinationPageText](#assemblyDestinationPageText-java.util.List-) | Restores changed text from the list of changes. |
| [assemblySourcePageText](#assemblySourcePageText-java.util.List-) | Restores the original text from the list of changes. |
| [compareDocumentsPageByPage](#compareDocumentsPageByPage-com.aspose.pdf.Document-com.aspose.pdf.Document-com.aspose.pdf.comparison.ComparisonOptions-) | Compares two documents page by page. |
| [compareDocumentsPageByPage](#compareDocumentsPageByPage-com.aspose.pdf.Document-com.aspose.pdf.Document-com.aspose.pdf.comparison.ComparisonOptions-java.lang.String-) | Compares two documents page by page. The result is saved in a PDF file. |
| [compareFlatDocuments](#compareFlatDocuments-com.aspose.pdf.Document-com.aspose.pdf.Document-com.aspose.pdf.comparison.ComparisonOptions-) | Compares two documents page by page. The documents are compared as a whole. Before comparing text, the texts of document pages are combined into one text. |
| [compareFlatDocuments](#compareFlatDocuments-com.aspose.pdf.Document-com.aspose.pdf.Document-com.aspose.pdf.comparison.ComparisonOptions-java.lang.String-) | Compares two documents page by page. The result is saved in a PDF file. The documents are compared as a whole. Before comparing text, the texts of document pages are combined into one text. |
| [comparePages](#comparePages-com.aspose.pdf.Page-com.aspose.pdf.Page-com.aspose.pdf.comparison.ComparisonOptions-) | Compares document pages. |
| [createComparisonStatistics](#createComparisonStatistics-java.util.List-) | Gets documents comparison statistics. |
| [createComparisonStatistics1](#createComparisonStatistics1-java.util.List-) | Gets comparison statistics. |

### TextPdfComparer {#TextPdfComparer--}
```
public TextPdfComparer()
```



### assemblyDestinationPageText {#assemblyDestinationPageText-java.util.List-}
Restores changed text from the list of changes.

### assemblySourcePageText {#assemblySourcePageText-java.util.List-}
Restores the original text from the list of changes.

### compareDocumentsPageByPage {#compareDocumentsPageByPage-com.aspose.pdf.Document-com.aspose.pdf.Document-com.aspose.pdf.comparison.ComparisonOptions-}
Compares two documents page by page.

### compareDocumentsPageByPage {#compareDocumentsPageByPage-com.aspose.pdf.Document-com.aspose.pdf.Document-com.aspose.pdf.comparison.ComparisonOptions-java.lang.String-}
Compares two documents page by page. The result is saved in a PDF file.

### compareFlatDocuments {#compareFlatDocuments-com.aspose.pdf.Document-com.aspose.pdf.Document-com.aspose.pdf.comparison.ComparisonOptions-}
Compares two documents page by page. The documents are compared as a whole. Before comparing text, the texts of document pages are combined into one text.

### compareFlatDocuments {#compareFlatDocuments-com.aspose.pdf.Document-com.aspose.pdf.Document-com.aspose.pdf.comparison.ComparisonOptions-java.lang.String-}
Compares two documents page by page. The result is saved in a PDF file. The documents are compared as a whole. Before comparing text, the texts of document pages are combined into one text.

### comparePages {#comparePages-com.aspose.pdf.Page-com.aspose.pdf.Page-com.aspose.pdf.comparison.ComparisonOptions-}
Compares document pages.

### createComparisonStatistics {#createComparisonStatistics-java.util.List-}
Gets documents comparison statistics.

### createComparisonStatistics1 {#createComparisonStatistics1-java.util.List-}
Gets comparison statistics.
