public HPDF_STATUS getError()

Returns the last error code of specified document object