TextExtractionErrorLocation.h
1 #pragma once
2 // Copyright (c) 2001-2024 Aspose Pty Ltd. All Rights Reserved.
3 
4 #include <system/string.h>
5 #include <cstdint>
6 
7 #include "Aspose.PDF.Cpp/aspose_pdf_api_defs.h"
8 
9 namespace Aspose
10 {
11 namespace Pdf
12 {
13 class Point;
14 namespace Text
15 {
16 class TextAbsorber;
17 class TextExtractionVerifier;
18 } // namespace Text
19 } // namespace Pdf
20 } // namespace Aspose
21 
22 namespace Aspose {
23 
24 namespace Pdf {
25 
26 namespace Text {
27 
31 class ASPOSE_PDF_SHARED_CLASS TextExtractionErrorLocation final : public System::Object
32 {
34  typedef System::Object BaseType;
35 
36  typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
37  ASPOSE_PDF_SHARED_RTTI_INFO_DECL();
38 
39  friend class Aspose::Pdf::Text::TextExtractionVerifier;
41 
42 public:
43 
47  ASPOSE_PDF_SHARED_API System::String get_Path() const;
51  ASPOSE_PDF_SHARED_API int32_t get_PageNumber() const;
55  ASPOSE_PDF_SHARED_API System::String get_ObjectType() const;
59  ASPOSE_PDF_SHARED_API System::String get_FormKey() const;
63  ASPOSE_PDF_SHARED_API int32_t get_OperatorIndex() const;
67  ASPOSE_PDF_SHARED_API System::String get_OperatorString() const;
71  ASPOSE_PDF_SHARED_API System::String get_FontUsedKey() const;
75  ASPOSE_PDF_SHARED_API System::SharedPtr<Point> get_TextStartPoint() const;
76 
81  ASPOSE_PDF_SHARED_API System::String ToString() const override;
82 
83 protected:
84 
88  ASPOSE_PDF_SHARED_API void set_OperatorString(System::String value);
92  ASPOSE_PDF_SHARED_API void set_TextStartPoint(System::SharedPtr<Point> value);
93 
94  TextExtractionErrorLocation(System::String path, int32_t pageNum, System::String objectType, System::String formKey, int32_t operatorIndex, System::String operatorString, System::String fontUsedKey);
95 
96  MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION(TextExtractionErrorLocation, CODEPORTING_ARGS(System::String path, int32_t pageNum, System::String objectType, System::String formKey, int32_t operatorIndex, System::String operatorString, System::String fontUsedKey));
97 
98 private:
99 
100  System::String _documentPath;
101  int32_t _pageNum;
102  System::String _objectType;
103  System::String _formKey;
104  int32_t _operatorIndex;
105  System::String _operatorString;
106  System::String _fontUsedKey;
107  System::SharedPtr<Point> _textStartPoint;
108 
109  System::String ToString_NonConst();
110 
111 };
112 
113 } // namespace Text
114 } // namespace Pdf
115 } // namespace Aspose
116 
117 
String class used across the library. Is a substitute for C# System.String when translating code...
Definition: string.h:121
Represents an absorber object of a text. Performs text extraction and provides access to the result v...
Definition: TextAbsorber.h:72
Base class that enables using methods available for System.Object class in C#. All non-trivial classe...
Definition: object.h:64
Pointer class to wrap types being allocated on heap. Use it to manage memory for classes inheriting O...
Definition: fwd.h:22
Represents a text type.
Definition: AFRelationship.h:4
Represents the location in the PDF document where text extraction error has appeared.
Definition: TextExtractionErrorLocation.h:31
A printer&#39;s point (1/72 of an inch).
virtual ASPOSECPP_SHARED_API String ToString() const
Analog of C# Object.ToString() method. Enables converting custom objects to string.
Whole PDF file will be submitted.