XWPFDocument doc = new XWPFDocument();String pdf = filename;PdfReader reader = new PdfReader(pdf);PdfReaderContentParser parser = new PdfReaderContentParser(reader);