В
Size: a a a
В
В
const getFormat = s => {
const buf = new ArrayBuffer(s.length)
const view = new Uint8Array(buf)
// eslint-disable-next-line no-bitwise
for (let i = 0; i < s.length; i++) view[i] = s.charCodeAt(i) & 0xff
return buf
}
const saveFile = (reportName, data) => {
const blob = new Blob([getFormat(data)], { type: 'application/pdf' })
const link = document.createElement('a')
link.href = window.URL.createObjectURL(blob)
const fileName = reportName
link.download = fileName
link.click()
}
saveFile('pdf.pdf', response.data)
АБ
В
C
D
C
S
D
MS
C
Т
MS
S
MS
S
C
C
MS
В