I'm having a word document, .docx, containing tables, paragraphs and images. I have been able to successfully convert the file to pdf but the pdf file is missing images. This is a code snippet I'm using:
ByteArrayOutputStream baos = new ByteArrayOutputStream();
PdfOptions options = PdfOptions.create();
PdfConverter.getInstance().convert(xwpfDocument, baos, options);
new FileOutputStream(new File("/home/sam/test.pdf")).write(baos.toByteArray());
The final file, test.pdf does not contain images on the .docx. Is there something else I'm supposed to do?