HEre is the conversion code:
try (Converter converter = new Converter(fileName)) {
final ImageConvertOptions options = new ImageConvertOptions();
options.setFormat(FileType.fromEx…...groupdocs/groupdocs-conversion/24.12.1 to https://mvnrepository.com/artifact/com...Conversion for Java version 24.12.1 , you can avoid the DPI configuration...