backport to iText 2.1.7 due to incompatible license of newer versions