PoDoFo 1.0.0-dev
Loading...
Searching...
No Matches
PdfCatalog.h
1
7#ifndef PDF_CATALOG
8#define PDF_CATALOG
9
10#include "PdfElement.h"
11
12namespace PoDoFo
13{
14 class PODOFO_API PdfCatalog final : public PdfDictionaryElement
15 {
16 friend class PdfDocument;
17
18 private:
19 PdfCatalog(PdfObject& obj);
20
21 public:
25 PdfObject* GetStructTreeRootObject();
26 const PdfObject* GetStructTreeRootObject() const;
27
31 PdfObject* GetMarkInfoObject();
32 const PdfObject* GetMarkInfoObject() const;
33
37 PdfObject* GetLangObject();
38 const PdfObject* GetLangObject() const;
39
43 void SetPageMode(nullable<PdfPageMode> mode);
44
48 PdfPageMode GetPageMode() const;
49
52 void SetUseFullScreen();
53
56 void SetPageLayout(nullable<PdfPageLayout> layout);
57
61 void SetHideToolbar();
62
66 void SetHideMenubar();
67
72 void SetHideWindowUI();
73
77 void SetFitWindow();
78
82 void SetCenterWindow();
83
90 void SetDisplayDocTitle();
91
97 void SetPrintScaling(const PdfName& scalingType);
98
104 void SetBaseURI(const std::string_view& baseURI);
105
109 void SetLanguage(const std::string_view& language);
110
114 void SetBindingDirection(const PdfName& direction);
115
119 PdfObject* GetMetadataObject();
120 const PdfObject* GetMetadataObject() const;
121 PdfObject& GetOrCreateMetadataObject();
122
123 std::string GetMetadataStreamValue() const;
124 void SetMetadataStreamValue(const std::string_view& value);
125
126 private:
131 void setViewerPreference(const PdfName& whichPref, const PdfObject& valueObj);
132
138 void setViewerPreference(const PdfName& whichPref, bool inValue);
139 };
140}
141
142#endif // PDF_CATALOG
SPDX-FileCopyrightText: (C) 2022 Francesco Pretto ceztko@gmail.com SPDX-License-Identifier: LGPL-2....
Definition basetypes.h:16
PdfPageMode
Enum holding the supported of types of "PageModes" that define which (if any) of the "panels" are ope...
Definition PdfDeclarations.h:540