3

PDF Viewer File Name/Title

New Tab URL

My code (Javascript) to open the tab is below:

function openPdfInNewTab(pdfData) {
  var file = new Blob([pdfData], { type: 'application/pdf' })
  var fileURL = URL.createObjectURL(file)
  window.open(fileURL, 'test')
}
zinwrath
  • 31
  • 2

0 Answers0