PoDoFo 1.0.0-dev
Loading...
Searching...
No Matches
PdfCommon.h
1
7#ifndef PDF_COMMON_H
8
9#include "PdfDeclarations.h"
10
11namespace PoDoFo {
12
13using LogMessageCallback = std::function<void(PdfLogSeverity logSeverity, const std::string_view& msg)>;
14
15class PODOFO_API PdfCommon final
16{
17 PdfCommon() = delete;
18
19public:
20 static void AddFontDirectory(const std::string_view& path);
21
26 static void SetLogMessageCallback(const LogMessageCallback& logMessageCallback);
27
31 static void SetMaxLoggingSeverity(PdfLogSeverity logSeverity);
32
36 static PdfLogSeverity GetMaxLoggingSeverity();
37
38 // set maximum recursion depth (set to 0 to disable recursion check)
39 static void SetMaxRecursionDepth(unsigned maxRecursionDepth);
40
41 static unsigned GetMaxRecursionDepth();
42
45 static bool IsLoggingSeverityEnabled(PdfLogSeverity logSeverity);
46
47 static unsigned GetMaxObjectCount();
48 static void SetMaxObjectCount(unsigned maxObjectCount);
49};
50
51}
52
53#define PDF_COMMON_H
54
55#endif // PDF_COMMON_H
SPDX-FileCopyrightText: (C) 2005 Dominik Seichter domseichter@web.de SPDX-FileCopyrightText: (C) 2020...
SPDX-FileCopyrightText: (C) 2022 Francesco Pretto ceztko@gmail.com SPDX-License-Identifier: LGPL-2....
Definition basetypes.h:16
PdfLogSeverity
Used in PoDoFo::LogMessage to specify the log level.
Definition PdfDeclarations.h:57