score:1

Accepted answer

I might be missing something here, but why not just use a link open the pdf?

const href = `/pdf/company?ID=${record.id}&PAGE_ID=${this.props.pageID}`
return (
  <a href={href} target="_blank">Open PDF in new tab</a>
)

The <form> element feels like overkill for a simple get request

The data object you are referring to is the data stream of the binary or pdf as encoded text. You will see the same thing if you attempt to open an image in a text editor.

https://en.wikipedia.org/wiki/Specials_(Unicode_block)#Replacement_character


Related Query

More Query from same tag