PageDevice.h
1 #pragma once
2 // Copyright (c) 2001-2024 Aspose Pty Ltd. All Rights Reserved.
3 
4 #include "Aspose.PDF.Cpp/Devices/Device.h"
5 #include "Aspose.PDF.Cpp/aspose_pdf_api_defs.h"
6 
7 namespace Aspose
8 {
9 namespace Pdf
10 {
11 namespace Facades
12 {
13 class PdfConverter;
14 } // namespace Facades
15 class Page;
16 } // namespace Pdf
17 } // namespace Aspose
18 namespace System
19 {
20 namespace Drawing
21 {
22 class Graphics;
23 } // namespace Drawing
24 namespace IO
25 {
26 class Stream;
27 } // namespace IO
28 class String;
29 } // namespace System
30 
31 namespace Aspose {
32 
33 namespace Pdf {
34 
35 namespace Devices {
36 
40 class ASPOSE_PDF_SHARED_CLASS PageDevice : public Aspose::Pdf::Devices::Device
41 {
42  typedef PageDevice ThisType;
44 
45  typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
46  ASPOSE_PDF_SHARED_RTTI_INFO_DECL();
47 
49 
50 public:
51 
61  virtual ASPOSE_PDF_SHARED_API void Process(System::SharedPtr<Page> page, System::SharedPtr<System::IO::Stream> output) = 0;
71  ASPOSE_PDF_SHARED_API void Process(System::SharedPtr<Page> page, System::String outputFileName);
72 
73 protected:
74 
80  virtual ASPOSE_PDF_SHARED_API void Process(System::SharedPtr<Page> page, System::SharedPtr<System::Drawing::Graphics> gr);
81 
82 };
83 
84 } // namespace Devices
85 } // namespace Pdf
86 } // namespace Aspose
87 
88 
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
Represents a class to convert a pdf file&#39;s each page to images, supporting BMP, JPEG, PNG and TIFF now. Supported content in pdfs: pictures, form, comment.
Definition: PdfConverter.h:94
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
Abstract class for all devices which is used to process certain page the pdf document.
Definition: PageDevice.h:40
Definition: AFRelationship.h:4
The coordinates are in the page coordinate context.
Whole PDF file will be submitted.