TextExtractionError.h
1 #pragma once
2 // Copyright (c) 2001-2024 Aspose Pty Ltd. All Rights Reserved.
3 
4 #include <system/string.h>
5 
6 #include "Aspose.PDF.Cpp/aspose_pdf_api_defs.h"
7 
8 namespace Aspose
9 {
10 namespace Pdf
11 {
12 namespace Text
13 {
14 class TextAbsorber;
15 class TextExtractionErrorLocation;
16 class TextExtractionVerifier;
17 } // namespace Text
18 } // namespace Pdf
19 } // namespace Aspose
20 namespace System
21 {
22 namespace Text
23 {
24 class StringBuilder;
25 } // namespace Text
26 } // namespace System
27 
28 namespace Aspose {
29 
30 namespace Pdf {
31 
32 namespace Text {
33 
37 class ASPOSE_PDF_SHARED_CLASS TextExtractionError final : public System::Object
38 {
40  typedef System::Object BaseType;
41 
42  typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
43  ASPOSE_PDF_SHARED_RTTI_INFO_DECL();
44 
45  friend class Aspose::Pdf::Text::TextExtractionVerifier;
47 
48 public:
49 
53  ASPOSE_PDF_SHARED_API System::String get_Summary() const;
57  ASPOSE_PDF_SHARED_API System::String get_Description() const;
61  ASPOSE_PDF_SHARED_API System::SharedPtr<TextExtractionErrorLocation> get_Location() const;
65  ASPOSE_PDF_SHARED_API System::String get_FontKey() const;
69  ASPOSE_PDF_SHARED_API System::String get_FontName() const;
73  ASPOSE_PDF_SHARED_API System::String get_ExtractedText() const;
74 
79  ASPOSE_PDF_SHARED_API System::String ToString() const override;
80 
81 protected:
82 
86  ASPOSE_PDF_SHARED_API void set_Summary(System::String value);
90  ASPOSE_PDF_SHARED_API void set_Description(System::String value);
94  ASPOSE_PDF_SHARED_API void set_FontKey(System::String value);
98  ASPOSE_PDF_SHARED_API void set_FontName(System::String value);
102  ASPOSE_PDF_SHARED_API void set_ExtractedText(System::String value);
103  System::SharedPtr<System::Text::StringBuilder> get_DescriptionSb() const;
104 
106 
107  MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION(TextExtractionError, CODEPORTING_ARGS(System::SharedPtr<TextExtractionErrorLocation> location));
108  void FlushDescription();
109 
110 private:
111 
112  System::String _summary;
113  System::String _description;
115  System::String _fontKey;
116  System::String _fontName;
117  System::String _extractedText;
119 
120  System::String ToString_NonConst();
121 
122 };
123 
124 } // namespace Text
125 } // namespace Pdf
126 } // namespace Aspose
127 
128 
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
Definition: Artifact.h:67
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.
Describes the text extraction error has appeared in the PDF document.
Definition: TextExtractionError.h:37
Definition: AFRelationship.h:4
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.