Word to PDF convertion - Generating Empty Blank Pages

I was using below class and connecting to libreOffice installed in my linux server org.artofsolving.jodconverter.office.DefaultOfficeManagerConfiguration.DefaultOfficeManagerConfiguration()

Using below class I was converting Microsoft Word document (DOCX) to PDF, When we generate PDF, it is adding extra white blank pages in PDF.
org.artofsolving.jodconverter.OfficeDocumentConverter.OfficeDocumentConverter(OfficeManager officeManager)

I am not sure about the root cause for extra white pages creation in PDF while converting word to PDF using LibreOffice.

Please help me to stop generating extra blank pages in PDF conversion.

Thanks in advance.

what is “org.artofsolving.jodconverter.OfficeDocumentConverter.OfficeDocumentConverter”?

I want to automate word to pdf conversion using java.
Jodconverter - OfficeDocumentConverter class is having method conveter(‘DOCX’,‘PDF’) to convert word to pdf.
Jodconverter - DefaultOfficeManagerConfiguration class internally connects to LibreOffice.