PDF3DContent.h
1 #pragma once
2 // Copyright (c) 2001-2024 Aspose Pty Ltd. All Rights Reserved.
3 
4 #include <system/array.h>
5 #include <cstdint>
6 
7 #include "Aspose.PDF.Cpp/aspose_pdf_api_defs.h"
8 
9 namespace Aspose
10 {
11 namespace Pdf
12 {
13 namespace Annotations
14 {
15 class PDF3DStream;
16 } // namespace Annotations
17 namespace Engine
18 {
19 namespace Data
20 {
21 class PdfStream;
22 } // namespace Data
23 } // namespace Engine
24 } // namespace Pdf
25 } // namespace Aspose
26 namespace System
27 {
28 namespace IO
29 {
30 class Stream;
31 } // namespace IO
32 } // namespace System
33 
34 namespace Aspose {
35 
36 namespace Pdf {
37 
38 namespace Annotations {
39 
43 class ASPOSE_PDF_SHARED_CLASS PDF3DContent : public System::Object
44 {
45  typedef PDF3DContent ThisType;
46  typedef System::Object BaseType;
47 
48  typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
49  ASPOSE_PDF_SHARED_RTTI_INFO_DECL();
50 
52 
53 public:
54 
59  ASPOSE_PDF_SHARED_API System::String get_Extension() const;
60 
64  ASPOSE_PDF_SHARED_API PDF3DContent();
70  ASPOSE_PDF_SHARED_API PDF3DContent(System::String filename);
71 
77  ASPOSE_PDF_SHARED_API void Load(System::String filename);
82  ASPOSE_PDF_SHARED_API void LoadAsPRC(System::String filename);
87  ASPOSE_PDF_SHARED_API void LoadAsU3D(System::String filename);
92  ASPOSE_PDF_SHARED_API void LoadAsPRC(System::SharedPtr<System::IO::Stream> stream);
97  ASPOSE_PDF_SHARED_API void LoadAsU3D(System::SharedPtr<System::IO::Stream> stream);
102  ASPOSE_PDF_SHARED_API void LoadAsPRC(System::ArrayPtr<uint8_t> stream);
107  ASPOSE_PDF_SHARED_API void LoadAsU3D(System::ArrayPtr<uint8_t> stream);
113  ASPOSE_PDF_SHARED_API void SaveToFile(System::String filename);
118  ASPOSE_PDF_SHARED_API System::SharedPtr<System::IO::Stream> GetAsStream();
123  ASPOSE_PDF_SHARED_API System::ArrayPtr<uint8_t> GetAsByteArray();
124 
125 protected:
126 
129 
131 
133 
134 private:
135 
137  System::String _extension;
138 
140 
141 };
142 
143 } // namespace Annotations
144 } // namespace Pdf
145 } // namespace Aspose
146 
147 
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
Class PDF3DContent.
Definition: PDF3DContent.h:43
Pointer class to wrap types being allocated on heap. Use it to manage memory for classes inheriting O...
Definition: fwd.h:22
MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION(PDF3DStream, CODEPORTING_ARGS(System::SharedPtr< Document > doc, System::SharedPtr< Aspose::Pdf::Engine::Data::IPdfPrimitive > stream))
Definition: AFRelationship.h:4
Class PDF3DStream.
Definition: PDF3DStream.h:62
Subclass of System::SmartPtr which sets itself to weak mode at construction. Please note that this cl...
Definition: TextFragmentState.h:69
System::ArrayPtr< uint8_t > Data
Definition: PDF3DContent.h:128
System::WeakPtr< PDF3DStream > Pdf3DStream
Definition: PDF3DContent.h:127
Whole PDF file will be submitted.