Can we pass Inputstream for Conversion to officeToPDF() or is there any other API that can take inputStream of doc file?

Instead of passing file path can we pass the file as inputStream for conversion from office to PDF?

Yes, it is possible to convert files in memory without using filepaths. Please see the post here on how to do so: