i think this is a mistake in output method. when pdftk throw a waring, even if i set ignoreWarnings() , but not use, this programe still throw err . and then ,i found this code have mistake.
if (!(this._ignoreWarnings && data.toString().toLowerCase().includes('error'))) {
it should be
if (!(this._ignoreWarnings && !data.toString().toLowerCase().includes('error'))) {
i think this is a mistake in output method. when pdftk throw a waring, even if i set ignoreWarnings() , but not use, this programe still throw err . and then ,i found this code have mistake.
it should be
miss '!' before data.toString()