WatermarkArtifact.h
1 #pragma once
2 // Copyright (c) 2001-2024 Aspose Pty Ltd. All Rights Reserved.
3 
4 #include <system/string.h>
5 
6 #include "Aspose.PDF.Cpp/aspose_pdf_api_defs.h"
7 #include "Aspose.PDF.Cpp/Artifacts/Artifact.h"
8 
9 namespace Aspose
10 {
11 namespace Pdf
12 {
13 class ArtifactCollection;
14 namespace Engine
15 {
16 namespace Data
17 {
18 class IPdfDictionary;
19 } // namespace Data
20 } // namespace Engine
21 class Operator;
22 class XForm;
23 } // namespace Pdf
24 } // namespace Aspose
25 namespace System
26 {
27 namespace Collections
28 {
29 namespace Generic
30 {
31 template <typename> class List;
32 } // namespace Generic
33 } // namespace Collections
34 } // namespace System
35 
36 namespace Aspose {
37 
38 namespace Pdf {
39 
43 class ASPOSE_PDF_SHARED_CLASS WatermarkArtifact : public Aspose::Pdf::Artifact
44 {
47 
48  typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
49  ASPOSE_PDF_SHARED_RTTI_INFO_DECL();
50 
52 
53 public:
54 
58  ASPOSE_PDF_SHARED_API WatermarkArtifact();
59 
60 protected:
61 
63 
65  ASPOSE_PDF_SHARED_API System::SharedPtr<Artifact> CreateInstance() override;
66  ASPOSE_PDF_SHARED_API System::SharedPtr<Artifact> Clone() override;
67  ASPOSE_PDF_SHARED_API void WriteSpecialInfo(System::SharedPtr<XForm> form) override;
68 
69 private:
70 
71  static const System::String name;
72  static const System::String value;
73  static const System::String size;
74  static const System::String cR;
75  static const System::String cG;
76  static const System::String cB;
77  static const System::String WatermarkSettings;
78  static const System::String SourceFile;
79  static const System::String CurrentImage;
80  static const System::String type;
81 
82  static const System::String& DefaultFontName();
83 
84  float DefaultFontSize;
85 
86  void Init();
87 
88 };
89 
90 } // namespace Pdf
91 } // namespace Aspose
92 
93 
String class used across the library. Is a substitute for C# System.String when translating code...
Definition: string.h:121
class ASPOSECPP_SHARED_CLASS List
Definition: ienumerable.h:17
MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION(ArtifactCollection, CODEPORTING_ARGS(System::SharedPtr< Aspose::Pdf::Page > page))
Definition: Artifact.h:67
Class represents artifact collection.
Definition: ArtifactCollection.h:48
Pointer class to wrap types being allocated on heap. Use it to manage memory for classes inheriting O...
Definition: fwd.h:22
Defines method that releases resources owned by the current object. Objects of this class should only...
Definition: idisposable.h:29
Definition: AFRelationship.h:4
Class describes watermark artifact. This may be used to
Definition: WatermarkArtifact.h:43
List forward declaration.
Definition: Artifact.h:74
Class represents PDF Artifact object.
Definition: Artifact.h:90
Whole PDF file will be submitted.