Java convert docx to pdf

implement pdfconverter re- use class. convert selected pages of word doc/ docx to pdf in java. the three approaches: export- fo: the content is converted to xsl fo, and from there, to pdf ( or any of the other formats supported by apache fop) documents4j: since 8.