pdf-gold-digger/test.sh
Michal Szczepanski cc2002078b Extract images with VisitorImage #2
- output to file based on format data.{format}
- more documentation
2019-07-23 04:53:17 +02:00

15 lines
568 B
Bash
Executable File

#!/usr/bin/env bash
mkdir -p out
rm -rf out/*.png
rm -rf out/*.txt
rm -rf out/*.json
ls -la out/
wget -O out/test.pdf -nc https://github.com/mozilla/pdf.js/raw/master/web/compressed.tracemonkey-pldi-09.pdf
node gd.js -i './out/test.pdf' -f json
node gd.js -i './out/test.pdf' -f text
python3 -m json.tool out/test.json > out/test.formatted.json
yarn run esdoc
#-i ../../github.com/pdf.js/web/compressed.tracemonkey-pldi-09.pdf -f text
#-i ../../github.com/pdf.js/test/pdfs/cmykjpeg.pdf -f text
#-i ../../github.com/pdf.js/test/pdfs/images_1bit_grayscale.pdf -f text