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
51
friend
class
Aspose::Pdf::Annotations::PDF3DStream
;
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
127
System::WeakPtr<PDF3DStream>
Pdf3DStream
;
128
System::ArrayPtr<uint8_t>
Data
;
129
130
PDF3DContent
(
System::SharedPtr<Aspose::Pdf::Engine::Data::PdfStream>
stream);
131
132
MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION
(
PDF3DContent
, CODEPORTING_ARGS(
System::SharedPtr<Aspose::Pdf::Engine::Data::PdfStream>
stream));
133
134
private
:
135
136
System::SharedPtr<Aspose::Pdf::Engine::Data::PdfStream>
_stream;
137
System::String
_extension;
138
139
static
System::ArrayPtr<uint8_t>
ReadFully(
System::SharedPtr<System::IO::Stream>
input);
140
141
};
142
143
}
// namespace Annotations
144
}
// namespace Pdf
145
}
// namespace Aspose
146
147
Aspose::Pdf::AFRelationship::Data
Data
System::String
String class used across the library. Is a substitute for C# System.String when translating code...
Definition:
string.h:121
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:67
Aspose::Pdf::Plugins::DataType::Stream
Data type is a stream.
Aspose::Pdf::Annotations::PDF3DContent
Class PDF3DContent.
Definition:
PDF3DContent.h:43
System::SmartPtr
Pointer class to wrap types being allocated on heap. Use it to manage memory for classes inheriting O...
Definition:
fwd.h:22
Aspose::Pdf::Annotations::PDF3DStream::MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION
MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION(PDF3DStream, CODEPORTING_ARGS(System::SharedPtr< Document > doc, System::SharedPtr< Aspose::Pdf::Engine::Data::IPdfPrimitive > stream))
Aspose
Definition:
AFRelationship.h:4
Aspose::Pdf::Annotations::PDF3DStream
Class PDF3DStream.
Definition:
PDF3DStream.h:62
System::WeakPtr
Subclass of System::SmartPtr which sets itself to weak mode at construction. Please note that this cl...
Definition:
TextFragmentState.h:69
Aspose::Pdf::Annotations::PDF3DContent::Data
System::ArrayPtr< uint8_t > Data
Definition:
PDF3DContent.h:128
Aspose::Pdf::Annotations::PDF3DContent::Pdf3DStream
System::WeakPtr< PDF3DStream > Pdf3DStream
Definition:
PDF3DContent.h:127
Aspose::Pdf::Facades::SubmitFormFlag::Pdf
Whole PDF file will be submitted.