errorMsg
Error event.
[event]
errorMsg([in] int category, [in] int pos, [in] BSTR msg)
This event is called whenever Xpdf reports an error (or warning).
The event receives three arguments:
category
is one of the following categories:errCatSyntaxWarning
: a PDF syntax error which can be worked around; the output will probably be correcterrCatSyntaxError
: a PDF syntax error which will probably cause incorrect outputerrCatConfig
: an error in the xpdfrc config file or string passed tosetConfig
errCatIO
: an error in file I/OerrCatNotAllowed
: action not allowed by PDF permission settingserrCatUnimplemented
: an unimplemented PDF feature; output may be incorrecterrCatInternal
: an internal error, i.e., malfunction within the Xpdf code
pdf.errCatSyntaxError
, etc.pos
is a position (byte offset) within the PDF file (not available for all errors - in those cases, thepos
msg
is a descriptive error message
VB:
Private Sub pdf_errorMsg(category As Long, pos As Long, msg As String) Handles pdf.errorMsg
...
End Sub