# Doubt on pdf download

**URL:** https://community.neutrinos.com/t/doubt-on-pdf-download/1173
**Category:** Training, Academy & Certifications
**Created:** [September 2, 2025, 10:05am UTC](https://community.neutrinos.com/t/doubt-on-pdf-download/1173 "2025-09-02T10:05:15Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![Sam](https://community.neutrinos.com/letter_avatar_proxy/v4/letter/s/5f9b8f/32.png) [@Sam](https://community.neutrinos.com/u/Sam)
#### Post date: [September 2, 2025, 10:15am UTC](https://community.neutrinos.com/t/doubt-on-pdf-download/1173/2 "2025-09-02T10:15:57Z")

</div>

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();

// Cleanup  
a.remove();  
window.URL.revokeObjectURL(url);  
};

---

_[View the full topic](https://community.neutrinos.com/t/doubt-on-pdf-download/1173)._
