Hello @navaneethck_10 , If you have the buffer, you can pass it to the frontend and convert it into a Blob.
example
// Suppose pdfBuffer is your buffer (ArrayBuffer or Uint8Array)
const downloadPDF = (pdfBuffer) => {
// Convert buffer to Blob
const blob = new Blob([pdfBuffer], { type: “application/pdf” });
// Create a download link
const url = window.URL.createObjectURL(blob);
const a = document.createElement(“a”);
a.href = url;
a.download = “document.pdf”; // file name
document.body.appendChild(a);
a.click();
curl -X GET http://localhost:8081/api/audits/report/pdf\?startTime\=2025-09-03T19:36:08.022Z\&endTime\=2025-09-10T12:05:34.638Z\&operation\=CREATE_BOOK \
-H "Origin: http://localhost:4200" \
-H "Access-Control-Allow-Origin: http://localhost:4200" \
-o document.pdf \
-i
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- 0:00:44 --:--:-- 0