Skip to content

Commit

Permalink
feat: Aspose.PDF NET 24.4 part #2
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexBiriukov committed Dec 16, 2024
1 parent 091a7d9 commit cbfb26f
Show file tree
Hide file tree
Showing 278 changed files with 8,770 additions and 0 deletions.
30 changes: 30 additions & 0 deletions english/net/aspose.pdf.comparison/comparisonmode/_index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
---
title: Enum ComparisonMode
second_title: Aspose.PDF for .NET API Reference
description: Aspose.Pdf.Comparison.ComparisonMode enum. The comparison mode enumeration
type: docs
weight: 3130
url: /net/aspose.pdf.comparison/comparisonmode/
---
## ComparisonMode enumeration

The comparison mode enumeration.

```csharp
public enum ComparisonMode
```

### Values

| Name | Value | Description |
| --- | --- | --- |
| Normal | `0` | Normal mode. Only spaces within text fragments are taken into account (depending on the way the document is generated.) |
| IgnoreSpaces | `1` | All spaces are ignored. Changes are sought only in words. |
| ParseSpaces | `2` | The mode is similar to normal, but attempts to account for visual spacing between text fragments based on distance. Recognizing the number of spaces between fragments may not be accurate because this greatly depends on how the documents are generated. If documents are created by different generators, there may be inaccuracies in comparing spaces between text fragments. |

### See Also

* namespace [Aspose.Pdf.Comparison](../../aspose.pdf.comparison/)
* assembly [Aspose.PDF](../../)


38 changes: 38 additions & 0 deletions english/net/aspose.pdf.comparison/diffoperation/_index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
---
title: Class DiffOperation
second_title: Aspose.PDF for .NET API Reference
description: Aspose.Pdf.Comparison.DiffOperation class. Represents a class of diff operation
type: docs
weight: 3150
url: /net/aspose.pdf.comparison/diffoperation/
---
## DiffOperation class

Represents a class of diff operation.

```csharp
public class DiffOperation : IEquatable<DiffOperation>
```

## Properties

| Name | Description |
| --- | --- |
| [Operation](../../aspose.pdf.comparison/diffoperation/operation/) { get; } | Gets and sets operation type. |
| [Text](../../aspose.pdf.comparison/diffoperation/text/) { get; } | Get and set operation text. |

## Methods

| Name | Description |
| --- | --- |
| [Equals](../../aspose.pdf.comparison/diffoperation/equals/#equals)(DiffOperation) | |
| override [Equals](../../aspose.pdf.comparison/diffoperation/equals/#equals_1)(object) | |
| override [GetHashCode](../../aspose.pdf.comparison/diffoperation/gethashcode/)() | |
| override [ToString](../../aspose.pdf.comparison/diffoperation/tostring/)() | |

### See Also

* namespace [Aspose.Pdf.Comparison](../../aspose.pdf.comparison/)
* assembly [Aspose.PDF](../../)


35 changes: 35 additions & 0 deletions english/net/aspose.pdf.comparison/diffoperation/equals/_index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
---
title: DiffOperation.Equals
second_title: Aspose.PDF for .NET API Reference
description: DiffOperation method.
type: docs
weight: 30
url: /net/aspose.pdf.comparison/diffoperation/equals/
---
## Equals(object) {#equals_1}

```csharp
public override bool Equals(object other)
```

### See Also

* class [DiffOperation](../)
* namespace [Aspose.Pdf.Comparison](../../../aspose.pdf.comparison/)
* assembly [Aspose.PDF](../../../)

---

## Equals(DiffOperation) {#equals}

```csharp
public bool Equals(DiffOperation op)
```

### See Also

* class [DiffOperation](../)
* namespace [Aspose.Pdf.Comparison](../../../aspose.pdf.comparison/)
* assembly [Aspose.PDF](../../../)


Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
---
title: DiffOperation.GetHashCode
second_title: Aspose.PDF for .NET API Reference
description: DiffOperation method.
type: docs
weight: 40
url: /net/aspose.pdf.comparison/diffoperation/gethashcode/
---
## DiffOperation.GetHashCode method

```csharp
public override int GetHashCode()
```

### See Also

* class [DiffOperation](../)
* namespace [Aspose.Pdf.Comparison](../../../aspose.pdf.comparison/)
* assembly [Aspose.PDF](../../../)


Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
---
title: DiffOperation.Operation
second_title: Aspose.PDF for .NET API Reference
description: DiffOperation property. Gets and sets operation type
type: docs
weight: 10
url: /net/aspose.pdf.comparison/diffoperation/operation/
---
## DiffOperation.Operation property

Gets and sets operation type.

```csharp
public Operation Operation { get; }
```

### See Also

* enum [Operation](../../operation/)
* class [DiffOperation](../)
* namespace [Aspose.Pdf.Comparison](../../../aspose.pdf.comparison/)
* assembly [Aspose.PDF](../../../)


23 changes: 23 additions & 0 deletions english/net/aspose.pdf.comparison/diffoperation/text/_index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
---
title: DiffOperation.Text
second_title: Aspose.PDF for .NET API Reference
description: DiffOperation property. Get and set operation text
type: docs
weight: 20
url: /net/aspose.pdf.comparison/diffoperation/text/
---
## DiffOperation.Text property

Get and set operation text.

```csharp
public string Text { get; }
```

### See Also

* class [DiffOperation](../)
* namespace [Aspose.Pdf.Comparison](../../../aspose.pdf.comparison/)
* assembly [Aspose.PDF](../../../)


21 changes: 21 additions & 0 deletions english/net/aspose.pdf.comparison/diffoperation/tostring/_index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
---
title: DiffOperation.ToString
second_title: Aspose.PDF for .NET API Reference
description: DiffOperation method.
type: docs
weight: 50
url: /net/aspose.pdf.comparison/diffoperation/tostring/
---
## DiffOperation.ToString method

```csharp
public override string ToString()
```

### See Also

* class [DiffOperation](../)
* namespace [Aspose.Pdf.Comparison](../../../aspose.pdf.comparison/)
* assembly [Aspose.PDF](../../../)


47 changes: 47 additions & 0 deletions english/net/aspose.pdf.comparison/graphicalpdfcomparer/_index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
---
title: Class GraphicalPdfComparer
second_title: Aspose.PDF for .NET API Reference
description: Aspose.Pdf.Comparison.GraphicalPdfComparer class. Represents a class for graphically comparing PDF documents. Should be used to search for small changes mainly of a graphical nature. To compare text content changes use other PDF comparison classes
type: docs
weight: 3180
url: /net/aspose.pdf.comparison/graphicalpdfcomparer/
---
## GraphicalPdfComparer class

Represents a class for graphically comparing PDF documents. Should be used to search for small changes, mainly of a graphical nature. To compare text content changes, use other PDF comparison classes.

```csharp
public class GraphicalPdfComparer
```

## Constructors

| Name | Description |
| --- | --- |
| [GraphicalPdfComparer](graphicalpdfcomparer/)() | The default constructor. |

## Properties

| Name | Description |
| --- | --- |
| [Color](../../aspose.pdf.comparison/graphicalpdfcomparer/color/) { get; set; } | Gets and sets the change flag color. The default color is red. |
| [Resolution](../../aspose.pdf.comparison/graphicalpdfcomparer/resolution/) { getset; } | Gets and sets the resolution of the resulting images. The default value is 150dpi. |
| [Threshold](../../aspose.pdf.comparison/graphicalpdfcomparer/threshold/) { getset; } | Gets and sets the threshold value in percentage. This value allows you to ignore small changes if they are not significant to you. The default value is 0%. |

## Methods

| Name | Description |
| --- | --- |
| [CompareDocumentsToImages](../../aspose.pdf.comparison/graphicalpdfcomparer/comparedocumentstoimages/)(DocumentDocumentstringstringImageFormat) | Compares documents graphically. The comparison result is placed in images. |
| [CompareDocumentsToPdf](../../aspose.pdf.comparison/graphicalpdfcomparer/comparedocumentstopdf/)(DocumentDocumentstring) | Compares documents graphically. The comparison result is placed in a PDF document. |
| [ComparePagesToImage](../../aspose.pdf.comparison/graphicalpdfcomparer/comparepagestoimage/)(PagePagestring) | Compares pages graphically. The comparison result is placed in a image. |
| [ComparePagesToPdf](../../aspose.pdf.comparison/graphicalpdfcomparer/comparepagestopdf/#comparepagestopdf)(PagePageDocument) | Compares pages graphically. The comparison result is placed in a PDF document. |
| [ComparePagesToPdf](../../aspose.pdf.comparison/graphicalpdfcomparer/comparepagestopdf/#comparepagestopdf_1)(PagePagestring) | Compares pages graphically. The comparison result is placed in a PDF document. |
| [GetDifference](../../aspose.pdf.comparison/graphicalpdfcomparer/getdifference/)(PagePage) | Gets differences between pages images. The result contains an image of the first page compared and an array of differences. |

### See Also

* namespace [Aspose.Pdf.Comparison](../../aspose.pdf.comparison/)
* assembly [Aspose.PDF](../../)


Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
---
title: GraphicalPdfComparer.Color
second_title: Aspose.PDF for .NET API Reference
description: GraphicalPdfComparer property. Gets and sets the change flag color. The default color is red
type: docs
weight: 20
url: /net/aspose.pdf.comparison/graphicalpdfcomparer/color/
---
## GraphicalPdfComparer.Color property

Gets and sets the change flag color. The default color is red.

```csharp
public Color Color { get; set; }
```

### See Also

* class [Color](../../../aspose.pdf/color/)
* class [GraphicalPdfComparer](../)
* namespace [Aspose.Pdf.Comparison](../../../aspose.pdf.comparison/)
* assembly [Aspose.PDF](../../../)


Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
---
title: GraphicalPdfComparer.CompareDocumentsToImages
second_title: Aspose.PDF for .NET API Reference
description: GraphicalPdfComparer method. Compares documents graphically. The comparison result is placed in images
type: docs
weight: 50
url: /net/aspose.pdf.comparison/graphicalpdfcomparer/comparedocumentstoimages/
---
## GraphicalPdfComparer.CompareDocumentsToImages method

Compares documents graphically. The comparison result is placed in images.

```csharp
public void CompareDocumentsToImages(Document document1, Document document2,
string targetDirectory, string fileNamePrefix, ImageFormat imageFormat)
```

| Parameter | Type | Description |
| --- | --- | --- |
| document1 | Document | The first document to compare. |
| document2 | Document | The second document to compare. |
| targetDirectory | String | The directory to save a comparison results. |
| fileNamePrefix | String | The images name prefix. |
| imageFormat | ImageFormat | The image format to save. |

### Exceptions

| exception | condition |
| --- | --- |
| ArgumentException | If the pages being compared are of different sizes. If targetDirectory is null or empty string. If fileNamePrefix is null or empty string. |

### See Also

* class [Document](../../../aspose.pdf/document/)
* class [GraphicalPdfComparer](../)
* namespace [Aspose.Pdf.Comparison](../../../aspose.pdf.comparison/)
* assembly [Aspose.PDF](../../../)


Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
---
title: GraphicalPdfComparer.CompareDocumentsToPdf
second_title: Aspose.PDF for .NET API Reference
description: GraphicalPdfComparer method. Compares documents graphically. The comparison result is placed in a PDF document
type: docs
weight: 60
url: /net/aspose.pdf.comparison/graphicalpdfcomparer/comparedocumentstopdf/
---
## GraphicalPdfComparer.CompareDocumentsToPdf method

Compares documents graphically. The comparison result is placed in a PDF document.

```csharp
public void CompareDocumentsToPdf(Document document1, Document document2, string resultPdfPath)
```

| Parameter | Type | Description |
| --- | --- | --- |
| document1 | Document | The first document to compare. |
| document2 | Document | The second document to compare. |
| resultPdfPath | String | The target pdf file path. |

### Exceptions

| exception | condition |
| --- | --- |
| ArgumentException | If the pages being compared are of different sizes. If resultPdfPath is null or empty string. |

### See Also

* class [Document](../../../aspose.pdf/document/)
* class [GraphicalPdfComparer](../)
* namespace [Aspose.Pdf.Comparison](../../../aspose.pdf.comparison/)
* assembly [Aspose.PDF](../../../)


Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
---
title: GraphicalPdfComparer.ComparePagesToImage
second_title: Aspose.PDF for .NET API Reference
description: GraphicalPdfComparer method. Compares pages graphically. The comparison result is placed in a image
type: docs
weight: 70
url: /net/aspose.pdf.comparison/graphicalpdfcomparer/comparepagestoimage/
---
## GraphicalPdfComparer.ComparePagesToImage method

Compares pages graphically. The comparison result is placed in a image.

```csharp
public void ComparePagesToImage(Page page1, Page page2, string resultImagePath)
```

| Parameter | Type | Description |
| --- | --- | --- |
| page1 | Page | The first page to compare. |
| page2 | Page | The second page to compare. |
| resultImagePath | String | The path to target image file. |

### Exceptions

| exception | condition |
| --- | --- |
| ArgumentException | If the pages being compared are of different sizes. If resultImagePath is null or empty string. There is unknown saving image format. |

### See Also

* class [Page](../../../aspose.pdf/page/)
* class [GraphicalPdfComparer](../)
* namespace [Aspose.Pdf.Comparison](../../../aspose.pdf.comparison/)
* assembly [Aspose.PDF](../../../)


Loading

0 comments on commit cbfb26f

Please sign in to comment.