DocumentDevice.h
1 #pragma once
2 // Copyright (c) 2001-2024 Aspose Pty Ltd. All Rights Reserved.
3 
4 #include <cstdint>
5 
6 #include "Aspose.PDF.Cpp/Devices/Device.h"
7 #include "Aspose.PDF.Cpp/aspose_pdf_api_defs.h"
8 
9 namespace Aspose
10 {
11 namespace Pdf
12 {
13 class Document;
14 namespace Forms
15 {
16 class Field;
17 } // namespace Forms
18 } // namespace Pdf
19 } // namespace Aspose
20 namespace System
21 {
22 namespace IO
23 {
24 class Stream;
25 } // namespace IO
26 class String;
27 } // namespace System
28 
29 namespace Aspose {
30 
31 namespace Pdf {
32 
33 namespace Devices {
34 
38 class ASPOSE_PDF_SHARED_CLASS DocumentDevice : public Aspose::Pdf::Devices::Device
39 {
40  typedef DocumentDevice ThisType;
42 
43  typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
44  ASPOSE_PDF_SHARED_RTTI_INFO_DECL();
45 
46 public:
47 
63  virtual ASPOSE_PDF_SHARED_API void Process(System::SharedPtr<Aspose::Pdf::Document> document, int32_t fromPage, int32_t toPage, System::SharedPtr<System::IO::Stream> output) = 0;
73  ASPOSE_PDF_SHARED_API void Process(System::SharedPtr<Aspose::Pdf::Document> document, System::SharedPtr<System::IO::Stream> output);
83  ASPOSE_PDF_SHARED_API void Process(System::SharedPtr<Aspose::Pdf::Document> document, System::String outputFileName);
99  ASPOSE_PDF_SHARED_API void Process(System::SharedPtr<Aspose::Pdf::Document> document, int32_t fromPage, int32_t toPage, System::String outputFileName);
106  ASPOSE_PDF_SHARED_API void BinarizeBradley(System::SharedPtr<System::IO::Stream> inputImageStream, System::SharedPtr<System::IO::Stream> outputImageStream, double threshold);
107 
108  ASPOSE_PDF_SHARED_API DocumentDevice();
109 
110 private:
111 
112  bool _updateAnnotations;
113 
114  void ProcessField(System::SharedPtr<Aspose::Pdf::Forms::Field> field);
115 
116 };
117 
118 } // namespace Devices
119 } // namespace Pdf
120 } // namespace Aspose
121 
122 
String class used across the library. Is a substitute for C# System.String when translating code...
Definition: string.h:121
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
Abstract class for all devices which is used to process the whole pdf document.
Definition: DocumentDevice.h:38
Specifies that the member is a field.
Pointer class to wrap types being allocated on heap. Use it to manage memory for classes inheriting O...
Definition: fwd.h:22
Abstract class for all types of devices. Device is used to represent pdf document in some format...
Definition: Device.h:26
Definition: AFRelationship.h:4
Whole PDF file will be submitted.