create a new instance of the converter class and upload the file pdf with the full path. to convert a docx file to a pdf document, we’ ll need the apache poi library to read the word document and the itext library to generate the pdf. note that the openxml