TextDevice.h
1
#pragma once
2
// Copyright (c) 2001-2024 Aspose Pty Ltd. All Rights Reserved.
3
4
#include <system/shared_ptr.h>
5
6
#include "Aspose.PDF.Cpp/Devices/PageDevice.h"
7
#include "Aspose.PDF.Cpp/aspose_pdf_api_defs.h"
8
9
namespace
Aspose
10
{
11
namespace
Pdf
12
{
13
class
Page
;
14
namespace
Text
15
{
16
class
TextExtractionOptions;
17
}
// namespace Text
18
}
// namespace Pdf
19
}
// namespace Aspose
20
namespace
System
21
{
22
namespace
IO
23
{
24
class
Stream
;
25
}
// namespace IO
26
namespace
Text
27
{
28
class
Encoding;
29
}
// namespace Text
30
}
// namespace System
31
32
namespace
Aspose
{
33
34
namespace
Pdf
{
35
36
namespace
Devices {
37
46
class
ASPOSE_PDF_SHARED_CLASS
TextDevice
final :
public
Aspose::Pdf::Devices::PageDevice
47
{
48
typedef
TextDevice
ThisType
;
49
typedef
Aspose::Pdf::Devices::PageDevice
BaseType
;
50
51
typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
52
ASPOSE_PDF_SHARED_RTTI_INFO_DECL();
53
54
public
:
55
61
ASPOSE_PDF_SHARED_API
System::SharedPtr<Aspose::Pdf::Text::TextExtractionOptions>
get_ExtractionOptions()
const
;
67
ASPOSE_PDF_SHARED_API
void
set_ExtractionOptions(
System::SharedPtr<Aspose::Pdf::Text::TextExtractionOptions>
value);
73
ASPOSE_PDF_SHARED_API
System::SharedPtr<System::Text::Encoding>
get_Encoding()
const
;
79
ASPOSE_PDF_SHARED_API
void
set_Encoding(
System::SharedPtr<System::Text::Encoding>
value);
80
92
ASPOSE_PDF_SHARED_API
void
Process(
System::SharedPtr<Page>
page,
System::SharedPtr<System::IO::Stream>
output)
override
;
93
100
ASPOSE_PDF_SHARED_API
TextDevice
(
System::SharedPtr<Aspose::Pdf::Text::TextExtractionOptions>
extractionOptions);
104
ASPOSE_PDF_SHARED_API TextDevice();
111
ASPOSE_PDF_SHARED_API TextDevice(
System::SharedPtr<System::Text::Encoding>
encoding);
121
ASPOSE_PDF_SHARED_API TextDevice(
System::SharedPtr<Aspose::Pdf::Text::TextExtractionOptions>
extractionOptions,
System::SharedPtr<System::Text::Encoding>
encoding);
122
123
private
:
124
125
System::SharedPtr<Aspose::Pdf::Text::TextExtractionOptions>
extractionOptions;
126
System::SharedPtr<System::Text::Encoding>
encoding;
127
128
void
Initialize(
System::SharedPtr<Aspose::Pdf::Text::TextExtractionOptions>
extractionOptions,
System::SharedPtr<System::Text::Encoding>
encoding);
129
130
};
131
132
}
// namespace Devices
133
}
// namespace Pdf
134
}
// namespace Aspose
135
136
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
Aspose::Pdf::Devices::TextDevice
Represents class for converting pdf document pages into text.
Definition:
TextDevice.h:46
System::Net::Sockets::SocketType::Stream
The type that supports reliable, two-way, connection-based byte streams without duplication of data a...
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::Pdf::FieldValueType::Text
Represents a text type.
Aspose::Pdf::Devices::Device
Abstract class for all types of devices. Device is used to represent pdf document in some format...
Definition:
Device.h:26
Aspose::Pdf::Devices::PageDevice
Abstract class for all devices which is used to process certain page the pdf document.
Definition:
PageDevice.h:40
Aspose
Definition:
AFRelationship.h:4
System::Drawing::Drawing2D::CoordinateSpace::Page
The coordinates are in the page coordinate context.
Aspose::Pdf::Facades::SubmitFormFlag::Pdf
Whole PDF file will be submitted.