PoDoFo  1.0.0-dev
PdfInfo.h
1 
7 #ifndef PDF_INFO_H
8 #define PDF_INFO_H
9 
10 #include "PdfName.h"
11 #include "PdfDate.h"
12 #include "PdfElement.h"
13 
14 namespace PoDoFo
15 {
20 class PODOFO_API PdfInfo final : public PdfDictionaryElement
21 {
22 public:
27  PdfInfo(PdfObject& obj);
28 
35  PdfInfo(PdfObject& obj, PdfInfoInitial initial);
36 
40  void SetTitle(nullable<const PdfString&> title);
41 
45  nullable<const PdfString&> GetTitle() const;
46 
50  void SetAuthor(nullable<const PdfString&> author);
51 
55  nullable<const PdfString&> GetAuthor() const;
56 
60  void SetSubject(nullable<const PdfString&> subject);
61 
65  nullable<const PdfString&> GetSubject() const;
66 
70  void SetKeywords(nullable<const PdfString&> keywords);
71 
75  nullable<const PdfString&> GetKeywords() const;
76 
81  void SetCreator(nullable<const PdfString&> creator);
82 
86  nullable<const PdfString&> GetCreator() const;
87 
91  void SetProducer(nullable<const PdfString&> producer);
92 
96  nullable<const PdfString&> GetProducer() const;
97 
98  void SetCreationDate(nullable<PdfDate> date);
99 
103  nullable<PdfDate> GetCreationDate() const;
104 
105  void SetModDate(nullable<PdfDate> date);
106 
110  nullable<PdfDate> GetModDate() const;
111 
115  void SetTrapped(nullable<const PdfName&> trapped);
116 
120  nullable<const PdfName&> GetTrapped() const;
121 
122 private:
127  void init(PdfInfoInitial initial);
128 
133  nullable<const PdfString&> getStringFromInfoDict(const std::string_view& name) const;
134 };
135 
136 };
137 
138 #endif // PDF_INFO_H
This class provides access to the documents info dictionary, which provides information about the PDF...
Definition: PdfInfo.h:21
This class represents a PDF indirect Object in memory.
Definition: PdfObject.h:35
Alternative to std::optional that supports reference (but not pointer) types.
Definition: nullable.h:29
SPDX-FileCopyrightText: (C) 2022 Francesco Pretto ceztko@gmail.com SPDX-License-Identifier: LGPL-2....
Definition: basetypes.h:16
PdfInfoInitial
Enum to specify the initial information of the info dictionary.
Definition: PdfDeclarations.h:392