PoDoFo 1.2.0
Loading...
Searching...
No Matches
PdfInfo.h
1// SPDX-FileCopyrightText: 2006 Dominik Seichter <domseichter@web.de>
2// SPDX-FileCopyrightText: 2020 Francesco Pretto <ceztko@gmail.com>
3// SPDX-License-Identifier: LGPL-2.0-or-later OR MPL-2.0
4
5#ifndef PDF_INFO_H
6#define PDF_INFO_H
7
8#include "PdfName.h"
9#include "PdfDate.h"
10#include "PdfElement.h"
11
12namespace PoDoFo
13{
17class PODOFO_API PdfInfo final : public PdfDictionaryElement
18{
19public:
24
31
34 void SetTitle(nullable<const PdfString&> title);
35
38 nullable<const PdfString&> GetTitle() const;
39
42 void SetAuthor(nullable<const PdfString&> author);
43
46 nullable<const PdfString&> GetAuthor() const;
47
50 void SetSubject(nullable<const PdfString&> subject);
51
54 nullable<const PdfString&> GetSubject() const;
55
58 void SetKeywords(nullable<const PdfString&> keywords);
59
62 nullable<const PdfString&> GetKeywords() const;
63
67 void SetCreator(nullable<const PdfString&> creator);
68
71 nullable<const PdfString&> GetCreator() const;
72
75 void SetProducer(nullable<const PdfString&> producer);
76
79 nullable<const PdfString&> GetProducer() const;
80
81 void SetCreationDate(nullable<PdfDate> date);
82
85 nullable<PdfDate> GetCreationDate() const;
86
87 void SetModDate(nullable<PdfDate> date);
88
91 nullable<PdfDate> GetModDate() const;
92
95 void SetTrapped(nullable<const PdfName&> trapped);
96
99 nullable<const PdfName&> GetTrapped() const;
100
101private:
105 void init(PdfInfoInitial initial);
106
110 nullable<const PdfString&> getStringFromInfoDict(const std::string_view& name) const;
111};
112
113};
114
115#endif // PDF_INFO_H
This class provides access to the documents info dictionary, which provides information about the PDF...
Definition PdfInfo.h:18
This class represents a PDF indirect Object in memory.
Definition PdfObject.h:31
Convenient type for char array storage and/or buffer with std::string compatibility.
Definition basetypes.h:30
All classes, functions, types and enums of PoDoFo are members of these namespace.
Definition basetypes.h:13
PdfInfoInitial
Enum to specify the initial information of the info dictionary.
Definition PdfDeclarations.h:389