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 
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 
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 
String class used across the library. Is a substitute for C# System.String when translating code...
Definition: string.h:121
class ASPOSECPP_SHARED_CLASS List
Definition: ienumerable.h:17
Base class that enables using methods available for System.Object class in C#. All non-trivial classe...
Definition: object.h:64
Definition: Artifact.h:71
Represents a class to comparison two PDF pages or PDF documents.
Definition: TextPdfComparer.h:51
Pointer class to wrap types being allocated on heap. Use it to manage memory for classes inheriting O...
Definition: SideBySidePdfComparer.h:24
Definition: AFRelationship.h:4
List forward declaration.
Definition: Artifact.h:78
The coordinates are in the page coordinate context.
Whole PDF file will be submitted.