TextPdfComparer.h
1
#pragma once
2
// Copyright (c) 2001-2024 Aspose Pty Ltd. All Rights Reserved.
3
4
#include <system/array.h>
5
6
#include "Aspose.PDF.Cpp/aspose_pdf_api_defs.h"
7
8
namespace
Aspose
9
{
10
namespace
Pdf
11
{
12
namespace
Comparison
13
{
14
class
ComparisonOptions;
15
namespace
Diff
16
{
17
class
DiffOperation;
18
}
// namespace Diff
19
class
DocumentComparisonStatistics;
20
namespace
SideBySideComparison
21
{
22
class
TextFragmentRectanglesComparer;
23
}
// namespace SideBySideComparison
24
class
TextItemComparisonStatistics;
25
}
// namespace Comparison
26
class
Document
;
27
class
Page
;
28
class
Rectangle;
29
}
// namespace Pdf
30
}
// namespace Aspose
31
namespace
System
32
{
33
namespace
Collections
34
{
35
namespace
Generic
36
{
37
template
<
typename
>
class
List
;
38
}
// namespace Generic
39
}
// namespace Collections
40
}
// namespace System
41
42
namespace
Aspose
{
43
44
namespace
Pdf
{
45
46
namespace
Comparison {
47
51
class
ASPOSE_PDF_SHARED_CLASS
TextPdfComparer
:
public
System::Object
52
{
53
typedef
TextPdfComparer
ThisType
;
54
typedef
System::Object
BaseType
;
55
56
typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
57
ASPOSE_PDF_SHARED_RTTI_INFO_DECL();
58
59
public
:
60
68
static
ASPOSE_PDF_SHARED_API
System::SharedPtr<System::Collections::Generic::List<System::SharedPtr<System::Collections::Generic::List<System::SharedPtr<Diff::DiffOperation>
>>>> CompareDocumentsPageByPage(
System::SharedPtr<Document>
document1,
System::SharedPtr<Document>
document2,
System::SharedPtr<ComparisonOptions>
options);
77
static
ASPOSE_PDF_SHARED_API
System::SharedPtr<System::Collections::Generic::List<System::SharedPtr<System::Collections::Generic::List<System::SharedPtr<Diff::DiffOperation>
>>>> CompareDocumentsPageByPage(
System::SharedPtr<Document>
document1,
System::SharedPtr<Document>
document2,
System::SharedPtr<ComparisonOptions>
options,
System::String
resultPdfDocumentPath);
86
static
ASPOSE_PDF_SHARED_API
System::SharedPtr<System::Collections::Generic::List<System::SharedPtr<Diff::DiffOperation>
>> CompareFlatDocuments(
System::SharedPtr<Document>
document1,
System::SharedPtr<Document>
document2,
System::SharedPtr<ComparisonOptions>
options);
96
static
ASPOSE_PDF_SHARED_API
System::SharedPtr<System::Collections::Generic::List<System::SharedPtr<Diff::DiffOperation>
>> CompareFlatDocuments(
System::SharedPtr<Document>
document1,
System::SharedPtr<Document>
document2,
System::SharedPtr<ComparisonOptions>
options,
System::String
resultPdfDocumentPath);
104
static
ASPOSE_PDF_SHARED_API
System::SharedPtr<System::Collections::Generic::List<System::SharedPtr<Diff::DiffOperation>
>> ComparePages(
System::SharedPtr<Page>
page1,
System::SharedPtr<Page>
page2,
System::SharedPtr<ComparisonOptions>
options);
110
static
ASPOSE_PDF_SHARED_API
System::SharedPtr<TextItemComparisonStatistics>
CreateComparisonStatistics(
System::SharedPtr
<
System::Collections::Generic::List
<
System::SharedPtr<Diff::DiffOperation>
>> diffs);
116
static
ASPOSE_PDF_SHARED_API
System::SharedPtr<DocumentComparisonStatistics>
CreateComparisonStatistics(
System::SharedPtr
<
System::Collections::Generic::List
<
System::SharedPtr
<
System::Collections::Generic::List
<
System::SharedPtr<Diff::DiffOperation>
>>>> diffs);
122
static
ASPOSE_PDF_SHARED_API
System::String
AssemblySourcePageText(
System::SharedPtr
<
System::Collections::Generic::List
<
System::SharedPtr<Diff::DiffOperation>
>> diffs);
128
static
ASPOSE_PDF_SHARED_API
System::String
AssemblyDestinationPageText(
System::SharedPtr
<
System::Collections::Generic::List
<
System::SharedPtr<Diff::DiffOperation>
>> diffs);
129
130
private
:
131
132
static
System::SharedPtr<SideBySideComparison::TextFragmentRectanglesComparer>
RectanglesComparer;
133
134
static
System::String
GetDocumentText(
System::SharedPtr<Document>
document,
System::SharedPtr<Rectangle>
extractionArea,
System::ArrayPtr
<
System::SharedPtr<Rectangle>
> excludeAreas,
bool
excludeTables);
135
static
System::String
GetPageText(
System::SharedPtr<Page>
page,
System::SharedPtr<Rectangle>
extractionArea,
System::ArrayPtr
<
System::SharedPtr<Rectangle>
> excludeAreas,
bool
excludeTables);
136
137
};
138
139
}
// namespace Comparison
140
}
// namespace Pdf
141
}
// namespace Aspose
142
143
System::String
String class used across the library. Is a substitute for C# System.String when translating code...
Definition:
string.h:121
System::Collections::Generic::List
class ASPOSECPP_SHARED_CLASS List
Definition:
ienumerable.h:17
System::Object
Base class that enables using methods available for System.Object class in C#. All non-trivial classe...
Definition:
object.h:64
System
Definition:
Artifact.h:71
System::Drawing::GraphicsUnit::Document
1/300 of an inch.
Aspose::Pdf::Comparison::TextPdfComparer
Represents a class to comparison two PDF pages or PDF documents.
Definition:
TextPdfComparer.h:51
System::SmartPtr
Pointer class to wrap types being allocated on heap. Use it to manage memory for classes inheriting O...
Definition:
SideBySidePdfComparer.h:24
Aspose
Definition:
AFRelationship.h:4
System::Collections::Generic::List
List forward declaration.
Definition:
Artifact.h:78
System::Drawing::Drawing2D::CoordinateSpace::Page
The coordinates are in the page coordinate context.
Aspose::Pdf::Facades::SubmitFormFlag::Pdf
Whole PDF file will be submitted.