I have written this code and when I run the program it runs successfully, but it also print .vbs file along with this and I don't want that file as it will load my file system.
File fs=new File("D:/parser/samrudha-kelkar.docx");
File file=new File("D:/test.pdf");
IConverter converter = LocalConverter.builder().build();
Future<Boolean> conversion = converter
.convert(fs).as(DocumentType.MS_WORD)
.to(file).as(DocumentType.PDF)
.prioritizeWith(1000) // optional
.schedule();
Just call
converter.shutdown()
, documents4j should clean up after itself and leave you with an empty folder which you can safely delete. Note that any running job needs to terminate before the folder will be cleaned up.