refactor: throw early in PDF handling
refactor: throw early in PDF handling

[endlessm/eos-sdk#2917]

endlessm/eos-knowledge-lib,endlessm/eos-knowledge-lib,endlessm/eos-knowledge-lib,endlessm/eos-knowledge-lib