To build iText, Maven must be installed.
Running install without a profile will generate the itextpdf jar:
$ mvn clean install -Dmaven.test.skip=true | tee mvn.log
When using the profile all
also the source and javadoc jars will be generated:
$ mvn clean install -P all -Dmaven.test.skip=true | tee mvn.log
If you are in need of the Asian font jars, you can run one of the following commands:
$ mvn clean install -f itextpdf/itext-asian.pom | tee mvn.log
If you need the hyphenation jar, execute:
$ mvn clean install -f itextpdf/itext-hyph-xml.pom | tee mvn.log
To run the tests, Ghostscript and Imagemagick must be installed.
$ mvn clean install -Dmaven.test.failure.ignore=false -DgsExec=$(which gs) -DcompareExec=$(which compare) | tee mvn.log
You can use the Vagrantfile
to get a Vagrant VM (Ubuntu 14.04 LTS - Trusty Tahr, with VirtualBox) with all the required software installed.
$ vagrant box add ubuntu/trusty64
$ vagrant up
$ vagrant ssh -- 'cd /vagrant ; mvn clean install -Dmaven.test.skip=true' | tee mvn.log