downgrading to pdfbox 1.8.6 and other changes