PageSize.h
1 #pragma once
2 // Copyright (c) 2001-2024 Aspose Pty Ltd. All Rights Reserved.
3 
4 #include <system/object.h>
5 
6 #include "Aspose.PDF.Cpp/aspose_pdf_api_defs.h"
7 
8 namespace Aspose
9 {
10 namespace Pdf
11 {
12 namespace Facades
13 {
14 class PdfPageEditor;
15 } // namespace Facades
16 } // namespace Pdf
17 } // namespace Aspose
18 
19 namespace Aspose {
20 
21 namespace Pdf {
22 
26 class ASPOSE_PDF_SHARED_CLASS PageSize final : public System::Object
27 {
28  typedef PageSize ThisType;
29  typedef System::Object BaseType;
30 
31  typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
32  ASPOSE_PDF_SHARED_RTTI_INFO_DECL();
33 
35 
36 public:
37 
41  ASPOSE_PDF_SHARED_API float get_Width();
45  ASPOSE_PDF_SHARED_API void set_Width(float value);
49  ASPOSE_PDF_SHARED_API float get_Height();
53  ASPOSE_PDF_SHARED_API void set_Height(float value);
57  ASPOSE_PDF_SHARED_API bool get_IsLandscape() const;
61  ASPOSE_PDF_SHARED_API void set_IsLandscape(bool value);
65  static ASPOSE_PDF_SHARED_API System::SharedPtr<PageSize> get_A0();
69  static ASPOSE_PDF_SHARED_API System::SharedPtr<PageSize> get_A1();
73  static ASPOSE_PDF_SHARED_API System::SharedPtr<PageSize> get_A2();
77  static ASPOSE_PDF_SHARED_API System::SharedPtr<PageSize> get_A3();
81  static ASPOSE_PDF_SHARED_API System::SharedPtr<PageSize> get_A4();
85  static ASPOSE_PDF_SHARED_API System::SharedPtr<PageSize> get_A5();
89  static ASPOSE_PDF_SHARED_API System::SharedPtr<PageSize> get_A6();
93  static ASPOSE_PDF_SHARED_API System::SharedPtr<PageSize> get_B5();
97  static ASPOSE_PDF_SHARED_API System::SharedPtr<PageSize> get_PageLetter();
101  static ASPOSE_PDF_SHARED_API System::SharedPtr<PageSize> get_PageLegal();
105  static ASPOSE_PDF_SHARED_API System::SharedPtr<PageSize> get_PageLedger();
109  static ASPOSE_PDF_SHARED_API System::SharedPtr<PageSize> get_P11x17();
110 
116  ASPOSE_PDF_SHARED_API PageSize(float x, float y);
117 
118 protected:
119 
120  static const float LEAVE_INTACT;
121 
122 private:
123 
124  float width;
125  float height;
126  static System::SharedPtr<PageSize> _A0;
127  static System::SharedPtr<PageSize> _A1;
128  static System::SharedPtr<PageSize> _A2;
129  static System::SharedPtr<PageSize> _A3;
130  static System::SharedPtr<PageSize> _A4;
131  static System::SharedPtr<PageSize> _A5;
132  static System::SharedPtr<PageSize> _A6;
133  static System::SharedPtr<PageSize> _B5;
134  static System::SharedPtr<PageSize> _PageLetter;
135  static System::SharedPtr<PageSize> _PageLegal;
136  static System::SharedPtr<PageSize> _PageLedger;
137  static System::SharedPtr<PageSize> _P11x17;
138  bool isLandscape;
139 
140 };
141 
142 } // namespace Pdf
143 } // namespace Aspose
144 
145 
Base class that enables using methods available for System.Object class in C#. All non-trivial classe...
Definition: object.h:64
Represents a class to edit the PDF file&#39;s page, including rotating page, zooming page, moving position and changing page size.
Definition: PdfPageEditor.h:66
static const float LEAVE_INTACT
Definition: PageSize.h:120
Pointer class to wrap types being allocated on heap. Use it to manage memory for classes inheriting O...
Definition: fwd.h:22
Definition: AFRelationship.h:4
Class representing size of page in PDF document.
Definition: PageSize.h:26
Whole PDF file will be submitted.