csverifypdf
A CLI tool to check if a hash embedded in a PDF is valid.
Install
$ npm install -g chainscript
Usage
$ csverifypdf --help
Usage: csverifypdf [options] input
Options:
-h, --help output usage information
-V, --version output the version number
-r, --root <path> JSON root path (default body.content.hash)
Examples
Inject a chainscript with a hash into a PDF then verify it
$ cshashpdf document.pdf -- | cswritetopdf document.pdf output.pdf
$ csverifypdf output.pdf
Output:
Success