Components All New MacOS Windows Linux iOS
Examples Mac & Win Server Client Guides Statistic FMM Blog Deprecated Old

DynaPDF.ErrLogMessage

Returns an error of the internal error log.

Component Version macOS Windows Linux Server iOS SDK
DynaPDF 16.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes ✅ Yes
MBS( "DynaPDF.ErrLogMessage"; PDF { ; Index } )   More

Parameters

Parameter Description Example Flags
PDF The PDF reference returned from DynaPDF.New. $pdf
Index Zero based index of error. 0 Optional

Result

Returns JSON or error.

Description

Returns an error of the internal error log.
DynaPDF uses the error log to store non-fatal errors or warnings when it is not required to break processing or if more detailed error information should be provided than is possible with the normal exception handling.

For example, when opening a damaged PDF file with DynaPDF.OpenImportFile the function tries first to open the file in normal mode. All errors which occur in this step are written to the error log.

Depending on the kind of found errors, the function maybe falls back into repair mode and reads the file again. If this action is successful then the function returns with success and no error message is provided over the normal exception handling. So, you'll not notice that the file contained damages unless you take a look into the error log.

The error log was introduced with DynaPDF 3.0. It is used when reading a PDF file, e.g. DynaPDF.OpenImportFile, DynaPDF.ImportPage, DynaPDF.ImportPDFFile, and when parsing or rendering PDF pages, e.g. DynaPDF.ParseContent, DynaPDF.IsEmptyPage, DynaPDF.IsColorPage, DynaPDF.GetPageText, DynaPDF.RasterPage, DynaPDF.RasterPDFFile, and so on.

Examples

Get first error:

MBS("DynaPDF.ErrLogMessage"; $pdf; 0)

Example result:
{ "Message": "syntax error at line 1", "ObjNum": -1, "Offset": 1, "SrcFile": "../svg/svg_loader.cpp", "SrcLine": 421, "ErrCode": -1, "ErrType": -1 }

See also

Blog Entries

This function is free to use.

Created 8th August 2026, last changed 8th August 2026


DynaPDF.EndTemplate - DynaPDF.ErrLogMessageCount


MarkDown version: DynaPDFErrLogMessage.md