Hi Shivam,
It is very simple, you just need to convert your PDF to binary format and copy and past the binary content to virtual response.
To convert the pdf file to binary content, follow the steps for work around.
1. Create a new response on SI and change the response type to Graphical Image.
2. Upload the pdf file to the virtual response by click "Load from File" button from the response panel.
3. After you select you will get the screen as shown below, meaning you have uploaded the wrong file type but you are still fine with the message
4. Now change the response format to Graphic Image to Binary.
5. Once you change to binary format the virtual response will be as shown below.
6. Change the character encoding to ISO-8859-9
7. Save the service image.
Now change the response content type PDF. To do that change the Content-Type attribute on the response meta-data.
I have tested it from the Postman I can see the binary response.
If the test the same request from the browser I can see the PDF.
Hope this helps,
Vamsi Kurukuri | CA Technologies | Service Architect