How to convert doc/docx to pdf without saving to disk

Hi,
I have a need to convert doc or docx file to pdf file.
I have byte array of doc file in hand now i want t convert that to pdf, without using Aspose.Word
b/c i have a license for PDF only.

I tried out referring this article How to convert documents to pdf without saving to disk - #3 by krista.souhrada ,but the converted pdf has no format and contents also be weird.
Please help me with a way to convert the doc byte array to pdf byte array

@PatrickCook,

There is no way to convert the Word document to PDF with Aspose.PDF API. You can use Aspose.Words API to convert the Word documents to PDF. Please refer to this help topic: Convert Microsoft Word document to PDF

ok , thank you for the confirmation