10using LogMessageCallback = std::function<void(
PdfLogSeverity logSeverity,
const std::string_view& msg)>;
12class PODOFO_API PdfCommon final
19 static bool IsDebugBuild();
21 static void AddFontDirectory(
const std::string_view& path);
26 static void SetLogMessageCallback(
const LogMessageCallback& logMessageCallback);
30 static void SetMaxLoggingSeverity(PdfLogSeverity logSeverity);
37 static void SetMaxRecursionDepth(
unsigned maxRecursionDepth);
39 static unsigned GetMaxRecursionDepth();
42 static bool IsLoggingSeverityEnabled(PdfLogSeverity logSeverity);
44 static unsigned GetMaxObjectCount();
45 static void SetMaxObjectCount(
unsigned maxObjectCount);
This file should be included as the FIRST file in every header of PoDoFo lib.
All classes, functions, types and enums of PoDoFo are members of these namespace.
Definition basetypes.h:13
PdfLogSeverity
Used in PoDoFo::LogMessage to specify the log level.
Definition PdfDeclarations.h:49