13using LogMessageCallback = std::function<void(
PdfLogSeverity logSeverity,
const std::string_view& msg)>;
15class PODOFO_API PdfCommon final
20 static void AddFontDirectory(
const std::string_view& path);
26 static void SetLogMessageCallback(
const LogMessageCallback& logMessageCallback);
31 static void SetMaxLoggingSeverity(PdfLogSeverity logSeverity);
39 static void SetMaxRecursionDepth(
unsigned maxRecursionDepth);
41 static unsigned GetMaxRecursionDepth();
45 static bool IsLoggingSeverityEnabled(PdfLogSeverity logSeverity);
47 static unsigned GetMaxObjectCount();
48 static void SetMaxObjectCount(
unsigned maxObjectCount);
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