Issue while trying to bind the return type of document.save(…) with JAXRS

1.) I am facing the below issue while trying to bind the return type of document.save(…) with JAXRS.
below is the error:

ERROR org.apache.cxf.jaxrs.utils.JAXRSUtils.logMessageHandlerProblem:1770 - No message body writer has been found for class com.aspose.words.SaveOutputParameters, ContentType: application/pdf
.
Here our return MIME Type is “application/pdf” . Please help me out with same.

FYI, Code Snippet:

SaveOutputParameters saveOutputParameters = document.save(“Test.docx”);
saveOutputParameters.getContentType();
ResponseBuilder resp = Response.ok(saveOutputParameters);
resp.header(“Content-Disposition”, “attachment; filename=”+“Test.docx”);
resp.build();

@Pintutrnt

Please try the latest version of Aspose.Words for Java 19.5. We suggest you please read the following article about sending document to browser. Hope this helps you.
Sending to a Client Browser

Thank you Tahir. my issue got resolve…