adding pdf support (using itext pdf java lib)