Currently We are using this way to convert docx file to Pdf
WordProcessingLoadOptions loadOptions = new WordProcessingLoadOptions();
try (Converter converter = new Converter(is, loadOptions)) {
try (ByteArrayOutputStream ms = new ByteArrayOutputStream()) {
converter.convert(ms, new PdfConvertOptions());
byte[] outputPdfBytes = ms.toByteArray();
But this convert method seems to be deprecated recently. Can you provide me a similar api which is supported by Groupdocs.