On the problem of openoffice JODConverter converting various versions of doc into PDF

Environment liux online 200 doc documents, converted to PDF results found that there are 5 documents converted unsuccessfully, manual command found the following hints:
(preliminary determination should be a version problem these files may be saved by WPS or other unsupported office saved, decisively converted to 2007 docx converted successfully. The existing question is how to set openoffice to support multiple docx versions)

INFO: disconnected
Exception in thread "main" com.artofsolving.jodconverter.openoffice.connection.OpenOfficeException: conversion failed: could not load input document

    at com.artofsolving.jodconverter.openoffice.converter.OpenOfficeDocumentConverter.loadAndExport(OpenOfficeDocumentConverter.java:134)
    at com.artofsolving.jodconverter.openoffice.converter.OpenOfficeDocumentConverter.convertInternal(OpenOfficeDocumentConverter.java:120)
    at com.artofsolving.jodconverter.openoffice.converter.AbstractOpenOfficeDocumentConverter.convert(AbstractOpenOfficeDocumentConverter.java:104)
    at com.artofsolving.jodconverter.openoffice.converter.AbstractOpenOfficeDocumentConverter.convert(AbstractOpenOfficeDocumentConverter.java:74)
    at com.artofsolving.jodconverter.openoffice.converter.AbstractOpenOfficeDocumentConverter.convert(AbstractOpenOfficeDocumentConverter.java:70)
    at com.artofsolving.jodconverter.cli.ConvertDocument.convertOne(ConvertDocument.java:154)
    at com.artofsolving.jodconverter.cli.ConvertDocument.main(ConvertDocument.java:133)
Mar.13,2021

it seems that different versions of files are parsed by different libraries, mainly because of the difference between .doc and .docx, so be simple

try{
    docx2pdf(file);
} catch (Exception e){
    doc2pdf(file);
}
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e41f12-44968.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e41f12-44968.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?