status = doc:GetError()
doc:GetError() returns the last error code of specified document object.
Note that some functions also set a detailed error code. doc:GetErrorDetail() can be used to get this detailed error code.
Returns the last error code of document object, or #HPDF_OK if no last error.
#HPDF_INVALID_DOCUMENT - An invalid document handle is set.