Skip to content

Instantly share code, notes, and snippets.

@alanorth
Created February 7, 2014 08:11
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alanorth/b71a458e9b83c3a8015a to your computer and use it in GitHub Desktop.
Save alanorth/b71a458e9b83c3a8015a to your computer and use it in GitHub Desktop.
sudo apt-get install xpdf
# jai-imageio (32/64 bit doesn't matter because we only need the jar inside)
cd ~/src
wget http://download.java.net/media/jai-imageio/builds/release/1.1/jai_imageio-1_1-lib-linux-i586.tar.gz
tar zxf jai_imageio-1_1-lib-linux-i586.tar.gz
mvn install:install-file -Dfile=jai_imageio-1_1/lib/jai_imageio.jar -DgroupId=com.sun.media -DartifactId=jai_imageio -Dversion=1.0_01 -Dpackaging=jar -DgeneratePom=true
wget https://m2.duraspace.org/content/repositories/thirdparty/org/fcrepo/jai_core/1.1.2_01/jai_core-1.1.2_01.jar
mvn install:install-file -DgroupId=javax.media -DartifactId=jai_core -Dversion=1.1.2_01 -Dpackaging=jar -Dfile=jai_core-1.1.2_01.jar
cd ~/src/git/DSpace
mvn -U -Pxpdf-mediafilter-support clean package
cd dspace/target/dspace-3.1-build
ant update clean_backups
# Force a new thumbnail for something which has a PDF bitstream
/home/dspace/bin/dspace filter-media -v -i 123456789/29097
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment